fixes #2614

added method for checking event registration
How many ways do we have to convert an object to and from data? Because it can be done at a lot of places.