Safer equality checks.