Check slotIndex in bounds, rather than try-catch