How Living Conditions Affect Child Custody Decisions