Can you change these validation methods to be generated from iterating over an array?