public function persistedDataExists($id)
    {
        if (!$this->id) {
            $this->handler->open($this->savePath, $this->name);
        }
        $ret = (bool)$this->handler->read($id);
        if (!$this->id) {
            $this->handler->close();
        }
        return $ret;
    }
public function persistedDataExists($id)
    {
        if (!$this->id) {
            $this->handler->open($this->savePath, $this->name);
        }
        $ret = (bool)$this->handler->read($id);
        if (!$this->id) {
            $this->handler->close();
        }
        return $ret;
    }
public function persistedDataExists ( $ id ) { if ( ! $ this -> id ) { $ this -> handler -> open ( $ this -> savePath , $ this -> name ) ; } $ ret = ( bool ) $ this -> handler -> read ( $ id ) ; if ( ! $ this -> id ) { $ this -> handler -> close ( ) ; } return $ ret ; }
Does the storage handler have data under this ID?

@param string $id

@return bool
Does the storage handler have data under this ID?