You only need the `typeof` check here.