Here, I'd test if typeof is a string, since it could be undefined or null (#L182)