code: def table_exists(self, tablename: str) -> bool:
          
          # information_schema is ANSI standard
          sql = """
              SELECT COUNT(*)
              FROM information_schema.tables
              WHERE table_name=?
              AND table_schema={}
          """.format(self.get_current_schema_expr())
          row = self.fetchone(sql, tablename)
          return True if row[0] >= 1 else False
docs: Does the table exist?