(bad) way to handle validation across arrays