any method

bool any (Finder finder)

Checks if finder exists in the tree.

Implementation

bool any(Finder finder) {
  TestAsyncUtils.guardSync();
  return finder.evaluate().isNotEmpty;
}