refactor the active property to check if events exist