Add NewErrors function
Implement most of array validation