Test for both presence and value

This prevents values in t with a zero value being compared to missing
values in o as equal.