`typeof` returns a string so this comparison is never true. Use `typeof expression[key] === 'undefined'`