public function remove($value): bool
    {
        if (!isset($this->hashMap[$value])) {
            return false;
        }

        unset($this->hashMap[$value]);

        return true;
    }
public function remove($value): bool
    {
        if (!isset($this->hashMap[$value])) {
            return false;
        }

        unset($this->hashMap[$value]);

        return true;
    }
public function remove ( $ value ) : bool { if ( ! isset ( $ this -> hashMap [ $ value ] ) ) { return false ; } unset ( $ this -> hashMap [ $ value ] ) ; return true ; }
Remove the given value if it's present in the set.

@param mixed $value The value to be removed.

@return bool True if the value was present in the set, false otherwise.
Remove the given value if it s present in the set .