You don't generally use `undefined` as an rvalue--if you're assigning, you assign `null`.  Do you need to assign anything though?  If `userInfo.email` is undefined, you'll get undefined for free.  You can likely revert this change.