def table_exists(cursor):
    """ Checks if a table exists """
    cursor.execute(
        "SELECT name FROM sqlite_master WHERE type='table' AND name='proxy_responses';"
        )
    if cursor.fetchone() == None:
        return False
    else:
        return True
