def is_table(engine, sql):
    """ Check with the given sql arg is query or table

    Args:
        engine: SQLAlchemy connection engine
        sql: SQL query or table name

    Returns:
        True for table or False if not
    """
    if engine.dialect.has_table(engine, sql):
        return True
    return False
