`@base_path` assignment occurs outside the inner `if`. Sure, I could do a `raise foo if bar` but that's one awfully long line of code. As such, I opted for vertical code here.