fix routing issue

```else``` blocks are unnecessary for ```if```` blocks that return.