corrected strict equality check