This is a little nicer:   `any_refunds = any(i.status == "refunded" for i in order_items)`