Slight optimisation

No need to do most of the stuff if there's no events