I would do the check based on an interface, so that you can extend another event class and add the method