(a) A person commits the offense of loitering or prowling when he or she is in a place at a time or in a manner not usual for law-abiding individuals under circumstances that warrant a justifiable and reasonable alarm or immediate concern for the safety of persons or property in the vicinity. (b) Among the circumstances that may be considered in determining whether alarm is warranted is the fact that the person takes flight upon the appearance of a law enforcement officer, refuses to identify himself or herself, or manifestly endeavors to conceal himself or herself or any object. Unless flight the by person under the circumstances makes it impracticable, a law enforcement officer shall, prior to any arrest for an offense under the section, afford the person an opportunity to dispel any alarm or immediate concern that would otherwise be warranted by requesting the person to identify himself or herself and explain his or her presence and conduct. No person shall be convicted of an offense under this section if the law enforcement failed to comply with this procedure or if it appears at trial that the explanation given by the person was true and would have expelled the alarm or immediate concern.