Improved the way it checks whether to fire the event by first checking if the event handler has even been subscribed to.