(a) Warning; notice to parent or guardian. Any police officer upon finding a minor in violation of this article shall ascertain the name and address of such minor and warn the minor that he is in violation of curfew and shall direct the minor to proceed at once to his home or usual place of abode or shall take the minor home. The police officer shall report such action to the chief of police who in turn shall notify the parents, guardian or person having custody or control of such minor. (b) Detention. If the minor refuses to heed the warning or direction by any police officer or refuses to give such police officer his correct name and address, or if the minor has been warned on a previous occasion upon violation of curfew, he shall be taken to the police department and the parent, guardian or other adult person having the care and custody of such minor shall be notified to come and take charge of the minor. If the parent, guardian or other adult person above cannot be located or fails to come and take charge of the minor, the minor shall be released to the appropriate juvenile authorities.