Array insertion length validation