src/Traits/Collection/MainTrait.php
public function has($element)
    {
        $index = Arrays::getIndexOf($this->elements, $element);

        return null !== $index && false !== $index;
    }
public function has($element)
    {
        $index = Arrays::getIndexOf($this->elements, $element);

        return null !== $index && false !== $index;
    }
public function has ( $ element ) { $ index = Arrays :: getIndexOf ( $ this -> elements , $ element ) ; return null !== $ index && false !== $ index ; }
Returns information if the collection has given element, iow. if given element exists in the collection

@param mixed $element The element to verify
@return bool
Returns information if the collection has given element iow . if given element exists in the collection