protected function exists($id, $instanceName)
    {
        return $this->getConnection()->table($this->getTableName())
            ->where('id', $id)
            ->where('instance', $instanceName)
            ->exists();
    }
protected function exists($id, $instanceName)
    {
        return $this->getConnection()->table($this->getTableName())
            ->where('id', $id)
            ->where('instance', $instanceName)
            ->exists();
    }
protected function exists ( $ id , $ instanceName ) { return $ this -> getConnection ( ) -> table ( $ this -> getTableName ( ) ) -> where ( 'id' , $ id ) -> where ( 'instance' , $ instanceName ) -> exists ( ) ; }
Check if shopping cart instance exitsts.

@param $id
@param $instanceName

@return bool
Check if shopping cart instance exitsts .