public function has($field, $value, $strict = false)
    {
        return !(false === $this->search($field, $value, $strict));
    }
public function has($field, $value, $strict = false)
    {
        return !(false === $this->search($field, $value, $strict));
    }
public function has ( $ field , $ value , $ strict = false ) { return ! ( false === $ this -> search ( $ field , $ value , $ strict ) ) ; }
Checks if collection has entity with field equals to given value

@param string $field field
@param mixed $value value

@return bool
Checks if collection has entity with field equals to given value