(a) A person who stops or parks that person's motor vehicle on any highway or street for the sole purpose of aiding another motorist who signals for assistance by raising the hood of the vehicle or displaying a flag, flare or similar signal is not in violation of any law, ordinance, or rule prohibiting the stopping or parking of a motor vehicle, and no peace officer shall issue a traffic ticket therefor if:
(1) the motorist in distress is not already being given aid or assistance;
(2) the person takes reasonable safety precautions in stopping and parking the vehicle, and conforms with other laws regulating the stopping and parking of vehicles;
(3) the person is not in violation of traffic laws or rules other than the prohibition against stopping and parking; and
(4) the person promptly leaves the scene if directed to leave by a peace officer.
(b) This section does not apply to any person who stops or parks a vehicle next to an unattended vehicle.