emit now checks if a handler is registered e