**sparseBooleanArray.valueAt(i)** would be a little more efficient. **get()** has to do a binary search. **valueAt()** is just an array reference.