“Where an application under subsection (1) above is made and one of the persons named in it for the purposes of that subsection is a child, the court may refuse to hear the application if it considers that the determination of the application would not be in the best interests of the child.”