public boolean isEmpty() {
    return classDefs.items().isEmpty();
  }
Returns true if this dex doesn't contain any class defs.
android/android_framework/dex-maker/src/main/java/com/android/dx/dex/file/DexFile.java