public function contains($element)
    {
        $hash = $this->hash($element);
        return isset($this->hashTable[$hash])
               && in_array($element, $this->hashTable[$hash], true);
    }
public function contains($element)
    {
        $hash = $this->hash($element);
        return isset($this->hashTable[$hash])
               && in_array($element, $this->hashTable[$hash], true);
    }
public function contains ( $ element ) { $ hash = $ this -> hash ( $ element ) ; return isset ( $ this -> hashTable [ $ hash ] ) && in_array ( $ element , $ this -> hashTable [ $ hash ] , true ) ; }
Returns true if this set contains the element.

@param mixed $element
@return boolean
Returns true if this set contains the element .