src/Collection.php
public function contains($value): bool
    {
        return \in_array($value, $this->items, (is_scalar($value) ? false : true));
    }
public function contains($value): bool
    {
        return \in_array($value, $this->items, (is_scalar($value) ? false : true));
    }
public function contains ( $ value ) : bool { return \ in_array ( $ value , $ this -> items , ( is_scalar ( $ value ) ? false : true ) ) ; }
Returns true if the value is in the Collection

@link http://ca.php.net/in_array

@param mixed $value

@return boolean
Returns true if the value is in the Collection