You can use `any(x for x in ...)`