Added support for array validation