I would remove this check too, as we discussed, `undefined` can be an allowed value.