code: def is_credential_valid(self, credentialID):
          
          cur = self.conn.cursor()
          cur.execute('SELECT * FROM credentials WHERE id=? LIMIT 1', [credentialID])
          results = cur.fetchall()
          cur.close()
          return len(results) > 0
docs: Check if this credential ID is valid.