Q:

Using yield from a block duplicates the view

I have a model with a method where the goal is to output something if it exists,
and if not, to yield a view.
I have a view that is supposed to be used in the case where the model has a value, and in the case where it doesn't.
The problem is that the view is being duplicated in both cases.
Here is the code:
class MyModel(