public boolean isEmpty() {
    return entryCount() == 2;
  }
Returns true if this directory has no entries other than those to itself and its parent.
jimfs/src/main/java/com/google/common/jimfs/Directory.java