This is incorrect, `typeof(ret === "undefined") will always be `"boolean"`. Besides, `typeof` is an operator and doesn't require parenthesis.