Composite pk break test

Can't this be turned into a ternary condition?