Allow for optional value (not identity) comparison