Checks if an instance of S is registered.
S
bool isRegistered<S>({String? tag}) { return _factories.containsKey(_getKey(S, tag)); }