Added method to check the model in registry (errors if it's not present).