Return True if table exists, False otherwise.

def has_table(table_name):
    """Return True if table exists, False otherwise."""
    return db.engine.dialect.has_table(
        db.engine.connect(),
        table_name
    )