code: 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;
          }
      }
docs: Check whether group path contains string attribute.
  
  @param attributeName Name of attribute
  @param groups        Array of zero or more ancestor groups from root to parent.
  @return Boolean indicating whether attribute exists in group path.