def table_exists(db_cur, table_name):
    """
    Return a table name from a sqlite database to check if it exists.

    Parameters:
    db_cur(Cursor): A sqlite cursor connection.
    table_name(str): Name of a table in the sqite database.
    """
    query = "SELECT name FROM sqlite_master WHERE type='table' AND name='{}'".format(
        table_name
    )
    return db_cur.execute(query).fetchone() is not None