public function contains($value, bool $strict = false): bool
    {
        return (is_bool($this->search($value, $strict)) ? false : true);
    }
public function contains($value, bool $strict = false): bool
    {
        return (is_bool($this->search($value, $strict)) ? false : true);
    }
public function contains ( $ value , bool $ strict = false ) : bool { return ( is_bool ( $ this -> search ( $ value , $ strict ) ) ? false : true ) ; }
Determines whether the collection contains a given value

Values will be compared by value and by type if strict is set to true.

String comparison is done in a case-sensitive manner.

@param mixed $value
@param bool  $strict

@return bool
Determines whether the collection contains a given value