Added array length validator