docs: public boolean hasAttribute(String attributeName, String... groups) {
          synchronized (Hdf5Archive.LOCK_OBJECT) {
              if (groups.length == 0)
                  return this.file.attrExists(attributeName);
              Group[] groupArray = openGroups(groups);
              boolean b = groupArray[groupArray.length - 1].attrExists(attributeName);
              closeGroups(groupArray);
              return b;
          }
      }