Anno 1800
Does an effect that empties your hand end the game?
Yes if an effect returns your last hand card (for example, The Editor, since drawing replacements is optional), because the trigger is simply having no population cards in hand. Swapping cards does not end the game, since the action finishes with new cards in hand before the check.