public function has($key, $strict = false)
    {
        // When $strict is true, he check $key not how a key but a value.
        $isset = isset($this->storage[$key]);

        if ($isset) {
            if ($strict === true) {
                $isset = $isset && !empty($this->storage[$key]);
            }
        }

        return $isset;
    }
public function has($key, $strict = false)
    {
        // When $strict is true, he check $key not how a key but a value.
        $isset = isset($this->storage[$key]);

        if ($isset) {
            if ($strict === true) {
                $isset = $isset && !empty($this->storage[$key]);
            }
        }

        return $isset;
    }
public function has ( $ key , $ strict = false ) { // When $strict is true, he check $key not how a key but a value. $ isset = isset ( $ this -> storage [ $ key ] ) ; if ( $ isset ) { if ( $ strict === true ) { $ isset = $ isset && ! empty ( $ this -> storage [ $ key ] ) ; } } return $ isset ; }
Check existence of a key in the session collection

@param  string $key
@param  bool   $strict
@return boolean
Check existence of a key in the session collection