A petition regarding an alleged family in need of court-ordered services shall not be filed unless the children’s court attorney, after consultation with the department, determines and endorses upon the petition that filing is in the best interests of the child and family.