well really you just have to verify one set of matching parens, what you do in the middle is your business.

Having read on further, it does throw if you end up putting in garbage. So I'm fine with not checking it, you get the feedback that it's wrong.