Fix check for existence of event.