Max indices check