The Proper Way to Decode Arrays (with Zod)

A 10-line Zod helper that gracefully handles malformed array items.