“(5) In deciding whether to exercise its powers under this section and, if so, in what manner, the court shall have regard to all the circumstances including the need to secure the health, safety and wellbeing – (a) Of the applicant; and (b) Of any relevant child.”