This conditional can be simplified: the `typeof` check is redundant in this case.