Implemented `__contains__` for `DependencyInjector`