#44: Added array length validation.