Simplify a condition in is_KXK()

No functional change.