src/Collection/ArrayCollection.php
public function contains($value, bool $strict = true): bool
    {
        return in_array($value, $this->items, $strict);
    }
public function contains($value, bool $strict = true): bool
    {
        return in_array($value, $this->items, $strict);
    }
public function contains ( $ value , bool $ strict = true ) : bool { return in_array ( $ value , $ this -> items , $ strict ) ; }
Checks if a value exists

@param mixed $value  The value
@param bool  $strict Whether comparison should be strict

@return bool
Checks if a value exists