Nah, sounds like Steven Moffat pinched an idea from Red Dwarf. You know, the Inquisitor? Only instead of judging if people are worthy of existence by making them justify their existence to themselves, well, it must do the judgement itself.
The Doctor: There's one thing you never put in a trap, if you're smart, if you value your continued existence, if you have any plans about seeing tomorrow, there's one thing you never, ever put in a trap... Me.
-Doctor Who: The Time of Angels