Fix inconsistent `==`/`===` usage