updated nil checks of events and bookings