Removed isEvent() function

Removed isEvent() function