(2) reasonable efforts have been made to maintain the family unit and prevent the unnecessary removal of the child from the child's home or that an emergency exists which threatens the safety to the child.
The court shall not enter an order removing a child from the custody of a parent pursuant to this section based solely on the finding that the parent is homeless.