(a) Warning; notice to parent or guardian. Any law enforcement 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 law enforcement officer shall report such action to the chief of law enforcement 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 law enforcement officer or refuses to give such law enforcement 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 law enforcement 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 having custody or control of such minor cannot be located or fails to come and take charge of the minor, the minor shall be released to the appropriate juvenile authorities.