Maybe we could extract a `rejectEmpty` function _Originally posted by @JalilArfaoui in https://github.com/dis-moi/backend/pull/445#discussion_r703680151_