exists method

bool exists()

Check if the current path exists.

Implementation

bool exists() {
  if (route.isEmpty) return true;
  return getPreObjectFromPath().containsKey(route.last);
}