could flip it here to avoid a negative, and reduce the nesting level.

```
if resource_class in self.registered_resources:
    return

# rest of code...
````