use _.isUndefined instead of regular undefined