Educational value of accidental complexity - input validation case

Yes, I think so.