src/HashSetAbstract.php
public function contains($element)
    {
        $hashIndex = $this->hashIndex($element);

        if (array_key_exists($hashIndex, $this->_items)) {
            return true;
        }
        return false;
    }
public function contains($element)
    {
        $hashIndex = $this->hashIndex($element);

        if (array_key_exists($hashIndex, $this->_items)) {
            return true;
        }
        return false;
    }
public function contains ( $ element ) { $ hashIndex = $ this -> hashIndex ( $ element ) ; if ( array_key_exists ( $ hashIndex , $ this -> _items ) ) { return true ; } return false ; }
collection contains a given element

@param    mixed      $element        element
@return   bool                       true if the hashset contains a specified element
collection contains a given element