Better equal checking