Yes, you're completely right.  I always hate typeof for anything other than string and function.