Would this be easier?

```ruby
virtual_path = @_virtual_path || @virtual_path
```

Though I wish there was a way to do this without an instance variable. It'd be the only one used in Engine.