Changed hasNumber to isNumber