That's fine but the matching exposes that you should also handle the "has more than one element" case. And in general it's pointing to the idea of "try to not separate checks from code that depends on those checks"
Of course the only comment representing the perspective of the actual "protected group" is near the very bottom of the section and unanswered.
Every time someone says "think of the children", just remember that nobody is motivated by protecting children from their parents; it's all to protect parents from their children. Always has been.
reply