public function detach(string $event, $callback){
        if(isset($this->listeners[$event])){
            return $this->listeners[$event]->remove($callback);
        }
        return false;
    }
public function detach(string $event, $callback){
        if(isset($this->listeners[$event])){
            return $this->listeners[$event]->remove($callback);
        }
        return false;
    }
public function detach ( string $ event , $ callback ) { if ( isset ( $ this -> listeners [ $ event ] ) ) { return $ this -> listeners [ $ event ] -> remove ( $ callback ) ; } return false ; }
Detaches a listener from an event

@param string $event the event to attach too
@param callable $callback a callable function
@return bool true on success false on failure
Detaches a listener from an event