Please use `===` for comparisons. If you use `typeof` I don't think that `instanceof` is necessary.