nit: `undefined` is falsy so this shouldn't be necessary