`Lang.isUndefined()` doesn't do anything useful and will just make this slower. I recommend changing this to `typeof obj[key] !== 'undefined'`.