original_string: protected function _evaluateCondition($condition, Event $event)
      {
          if (!isset($this->_options[$condition])) {
              return $condition !== 'unless';
          }
          if (!is_callable($this->_options[$condition])) {
              throw new RuntimeException(self::class . ' the `' . $condition . '` condition is not a callable!');
          }
  
          return $this->_options[$condition]($event);
      }
code: protected function _evaluateCondition($condition, Event $event)
      {
          if (!isset($this->_options[$condition])) {
              return $condition !== 'unless';
          }
          if (!is_callable($this->_options[$condition])) {
              throw new RuntimeException(self::class . ' the `' . $condition . '` condition is not a callable!');
          }
  
          return $this->_options[$condition]($event);
      }
code_tokens: protected function _evaluateCondition ( $ condition , Event $ event ) { if ( ! isset ( $ this -> _options [ $ condition ] ) ) { return $ condition !== 'unless' ; } if ( ! is_callable ( $ this -> _options [ $ condition ] ) ) { throw new RuntimeException ( self :: class . ' the `' . $ condition . '` condition is not a callable!' ) ; } return $ this -> _options [ $ condition ] ( $ event ) ; }
docstring: Evaluates the filter conditions
  
  @param string $condition Condition type
  @param \Cake\Event\Event $event Event object
  @return bool
docstring_tokens: Evaluates the filter conditions