If you get assaulted all you need to do is hit them with your phone.
I think it’s a good idea that (to me anyway) benefits the parent/friend more than the pedestrian. They get to know she’s home and safe and can get a good night sleep.