public function hasIn($namespace, $key)
    {
        if (isset($_SESSION[$namespace])) {
            $oldNamespace = $this->namespace;
            $this->setNamespace($namespace);
            $result = $this->has($key);
            $this->setNamespace($oldNamespace);

            return $result;
        }
    }
public function hasIn($namespace, $key)
    {
        if (isset($_SESSION[$namespace])) {
            $oldNamespace = $this->namespace;
            $this->setNamespace($namespace);
            $result = $this->has($key);
            $this->setNamespace($oldNamespace);

            return $result;
        }
    }
public function hasIn ( $ namespace , $ key ) { if ( isset ( $ _SESSION [ $ namespace ] ) ) { $ oldNamespace = $ this -> namespace ; $ this -> setNamespace ( $ namespace ) ; $ result = $ this -> has ( $ key ) ; $ this -> setNamespace ( $ oldNamespace ) ; return $ result ; } }
Check if session value is set in specific namespace

@param  string $namespace Session namespace
@param  string $key       Session key
@return bool
Check if session value is set in specific namespace