added noted about error handling; added safety check function for event properties