`_.isUndefined` is quite limited to `undefined` and doesn't include `null`. Assuming a messageId can't be `0` or the empty string, maybe `!message.id` is better.