def table_has_row(connection, table, rowname):
    """Check whether actual table has row."""
    with connection.cursor() as cursor:
        table_description = connection.introspection.get_table_description(
            cursor, table)
        for row in table_description:
            if row.name == rowname:
                return True
    return False
