check that we have an event in event handler