src/Filter.php
public function has($name)
    {
        foreach ($this->filters() as $filter) {
            if ($filter->id() === $name) {
                return true;
            }
        }

        return false;
    }
public function has($name)
    {
        foreach ($this->filters() as $filter) {
            if ($filter->id() === $name) {
                return true;
            }
        }

        return false;
    }
public function has ( $ name ) { foreach ( $ this -> filters ( ) as $ filter ) { if ( $ filter -> id ( ) === $ name ) { return true ; } } return false ; }
Check if filter has element with name.

@param $name

@return bool
Check if filter has element with name .