Valids if the instance of T type with id optional exists.
T
id
bool exists<T extends Object?>([String? id]) { return _getInstanceRegister<T>(id)?.instance != null; }