typeof thing === 'undefined' is stupid