before emitting the event asynchronously, check that there are listeners
registered for the event