Thanks for the review. I think the code's readability outweighs the marginal efficiency gains from the suggested rewrite.