Invalid keys and values are those that are mssing their other pair.

Not the other way around.