check if events still defined before calling