src/Model/Filter/AbstractFilter.php
protected function _applicable($data)
    {
        $field = $this->config('name');

        return $field && (!empty($data[$field]) || $this->_defaultDefined() || isset($data[$field]) && (string)$data[$field] !== '');
    }
protected function _applicable($data)
    {
        $field = $this->config('name');

        return $field && (!empty($data[$field]) || $this->_defaultDefined() || isset($data[$field]) && (string)$data[$field] !== '');
    }
protected function _applicable ( $ data ) { $ field = $ this -> config ( 'name' ) ; return $ field && ( ! empty ( $ data [ $ field ] ) || $ this -> _defaultDefined ( ) || isset ( $ data [ $ field ] ) && ( string ) $ data [ $ field ] !== '' ) ; }
Check if filter applicable to query based on filter data

@param array $data Array of options as described above.
@return bool
Check if filter applicable to query based on filter data