Refactoring: correct use == and ===.