Nit: please use strict equalities when comparing.