Should use strict comparison here. !== instead of !=