changed eventName to event entity
use Collection methods instead of ArrayAccess methods