function has($item) { return $this->bst->contains($item); }
/** * @link http://php.net/manual/en/arrayaccess.offsetexists.php * * @param mixed $offset * * @return bool */ function offsetExists($offset) { return $this->avl->contains(new Pair($offset, null)); }