Check if eventHandlers exist before trying to register them