now checks if there are events or not