private function listenTo($event = null) {
        if ($event === null && $this->getEventInvoker()) {
            $event = $this->getEventInvoker()['id'];
        }
        return !$this->listen || in_array($event, $this->listen);
    }
private function listenTo($event = null) {
        if ($event === null && $this->getEventInvoker()) {
            $event = $this->getEventInvoker()['id'];
        }
        return !$this->listen || in_array($event, $this->listen);
    }
private function listenTo ( $ event = null ) { if ( $ event === null && $ this -> getEventInvoker ( ) ) { $ event = $ this -> getEventInvoker ( ) [ 'id' ] ; } return ! $ this -> listen || in_array ( $ event , $ this -> listen ) ; }
Check if the given event is listenable

@param int $event event id, current event if null
@return bool
Check if the given event is listenable