If the child's welfare is at risk, the family court can order various measures to protect the child. This can go so far that the parents are deprived of custody or part of it.