public function hasListeners($eventName = null) {

	    if($eventName) {
            return !empty($this->registry[$eventName]);
        }

        foreach($this->registry as $eventName => $listeners) {
            if(!empty($listeners)) {
                return true;
            }
        }

        return false;

    }