code: public boolean hasAttr(String attributeKey) {
          for (Element element : this) {
              if (element.hasAttr(attributeKey))
                  return true;
          }
          return false;
      }
docs: Checks if any of the matched elements have this attribute defined.
  @param attributeKey attribute key
  @return true if any of the elements have the attribute; false if none do.