This method of the ElementDeclEnumeration class determines if there are any more matching elements.
public boolean hasMoreElements();
Returns true if the next call to nextElement returns a non-null result.