22. Warrant to search for child ill-treated.

(a) a child has been or is being wilfully ill-treated or wilfully neglected in anyplace within its jurisdiction in a manner likely to cause the child unnecessary suffering or to be injurious to his health; or
(b) that an offence punishable under this Act or under Chapter XVI of the Indian Penal Code, has been or is being committed in respect of the child, the [judicial magistrate] may issue a summons in the first instance against the person or persons in whose care, custody or control such child is, to produce forthwith the said child in court, or may issue a warrant authorising any police officer named therein to search for such child and if it is found that he has been or is being wilfully ill- treated or neglected in manner aforesaid or that any offence as aforesaid has been or is being committed in respect of the child, to take him to, and detain him in, place of safety until he can be brought before the [judicial magistrate] , or authorising any police officer to remove the child with or without search, to a place of safety and detain him there until he can be brought before the [judicial magistrate] and the [judicial magistrate] before whom the child is brought may commit him to the care of a relative or other fit person in like manner as if the person in whose charge or control he was, had been commuted for trial for an offence punishable under this Act: