check event exists before converting to array