code: public static boolean hasNonEmptyAttribute(HtmlElement element, String attributeName) {
          return hasAttribute(element, attributeName) && !element.getAttribute(attributeName).isEmpty();
      }
docs: Returns <code>true</code> when the given element contains a non empty attribute with the given attribute name.
  
  @param element       element to check for an attribute
  @param attributeName name of the attribute
  @return <code>true</code> if an attribute with the given name exists and is not empty, otherwise
  <code>false</code>