The courts must place the welfare of a child before all other considerations. The behavior and choices of a parent can be considered; their demographic characteristics cannot be considered. If a custody battle looms ahead, keep your eyes on the prize: your child's healthy relationship with both parents. Be diligent about things you can control, like your attitude, communication, and cooperation with the other parent. It will benefit you, and ultimately your child, in the long run.