public boolean containsKey(int key) {
        return indexOfKey(key) >= 0;
    }
Returns true if the specified key is mapped.
android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/util/collection/SparseArrayCompat.java