def check_token(self):
try:<EOL><INDENT>doc = self.doc_ref.get()<EOL><DEDENT>except Exception as e:<EOL><INDENT>log.error('<STR_LIT>'<EOL>'<STR_LIT>'<EOL>.format(self.collection, self.doc_id, str(e)))<EOL>doc = None<EOL><DEDENT>return doc and doc.exists<EOL>
Checks if the token exists
:return bool: True if it exists on the store