Checks if the instance record exists. When key is provided it will search the instance that have the same key
key
bool isAdded<T>({String? key});