you could simplify to

```erb
<% if @end %>
<% else %>
```