public function contains($element, bool $strict = true): bool
    {
        return \in_array($element, $this->data, $strict);
    }
public function contains($element, bool $strict = true): bool
    {
        return \in_array($element, $this->data, $strict);
    }
public function contains ( $ element , bool $ strict = true ) : bool { return \ in_array ( $ element , $ this -> data , $ strict ) ; }
Returns `true` if this collection contains the specified element.

@param mixed $element The element to check whether the collection contains.
@param bool $strict Whether to perform a strict type check on the value.

@return bool
Returns true if this collection contains the specified element .