use array_get in validator.