"inquire into the ability of the child or his or her parents an appropriate adult or a guardian to pay the fine whether in full or in instalments and consider whether the failure to pay the fine may cause the child to be imprisoned"