自己解決

if (array[i].length < i )

でエラー捕捉できました
ご苦労さん