code: public boolean hasTable(String name) {
          Table table = getCatalogContext().tables.get(name);
          return (table!=null);
      }
docs: Returns true if a table with the given name exists in the server catalog.