src/main/php/session/WebSession.php
public function hasValue(string $key): bool
    {
        if (!$this->isValid()) {
            return false;
        }

        return $this->storage->hasValue($key);
    }
public function hasValue(string $key): bool
    {
        if (!$this->isValid()) {
            return false;
        }

        return $this->storage->hasValue($key);
    }
public function hasValue ( string $ key ) : bool { if ( ! $ this -> isValid ( ) ) { return false ; } return $ this -> storage -> hasValue ( $ key ) ; }
checks whether a value associated with key exists

@param   string  $key  key where value is stored under
@return  bool
checks whether a value associated with key exists