exists<T> method
Check if a dependency exists (instance or lazy factory) in this scope hierarchy
Implementation
bool exists<T>({String? tag}) {
if (_disposed) return false;
// Check resolved instances via find
if (find<T>(tag: tag) != null) return true;
// Also check unresolved lazy factories in this scope only
return _factories.containsKey(_makeKey<T>(tag));
}