public function removeIf($key, $value): bool
    {
        if ($this->get($key) === $value) {
            unset($this[$key]);

            return true;
        }

        return false;
    }
public function removeIf($key, $value): bool
    {
        if ($this->get($key) === $value) {
            unset($this[$key]);

            return true;
        }

        return false;
    }
public function removeIf ( $ key , $ value ) : bool { if ( $ this -> get ( $ key ) === $ value ) { unset ( $ this [ $ key ] ) ; return true ; } return false ; }
Removes the entry for the specified key only if it is currently mapped to
the specified value.

This performs a strict type check on the value.

@param mixed $key The key to remove from the map.
@param mixed $value The value to match.

@return bool true if the value was removed.
Removes the entry for the specified key only if it is currently mapped to the specified value .