Check indices of cells