I'm writing a database tools application and a portion of my code depends on whether a table exists or not. Is there any test (say returning a boolean) to tell whether this table exists? I've searched the API with no result. Any help, whether a hack or not, would be much appreciated.