Use LrItem.CurrentSymbol instead of manually handling the array indices.