check for `undefined`