bool any(Finder finder)

Checks if finder exists in the tree.

Source

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