stop php warning

added return to past events to prevent PHP warning