Simplify another object equality check