Ah, yes, the generator object evaluates to True even if it's empty.