Avoid using non-strict equality checks

This check prevents the use of `==` as an equality check.