return `typeof` value if it's not an object. very slight speed improvement