Another 'Check if the number is within range before accessing' array change