you should use ``hasListeners`` instead