Improved Validator to validate an array of custom class instances