public static boolean isEmpty(int[] bits) {
    int len = bits.length;

    for (int i = 0; i < len; i++) {
      if (bits[i] != 0) {
        return false;
      }
    }

    return true;
  }
Returns whether or not the given bit set is empty, that is, whether no bit is set to {@code
true}.

@param bits {@code non-null;} bit set to operate on
@return {@code true} iff all bits are {@code false}
android/android_framework/dex-maker/src/main/java/com/android/dx/util/Bits.java