Yeah, great idea.
It should be ```if all(not r[k].has(t) for k in 'a1 a2 b1 b2 c1 c2'.split()):```
all() works on True condition