hasElement method
Recursively checks all nested elements and returns true
if one
is found named elementName
.
elementName
must not be null
or empty.
Implementation
bool hasElement(String elementName) {
assert(elementName.isNotEmpty);
return hasElementWhere(name: elementName);
}