maybe can be simplified using `!!` to convert to a `Boolean`:

`is_test = !!@marketplace_uri.try(:index, "TEST")` (using active_support)

or 

`is_test = @marketplace_uri && !!@marketplace_uri.index("TEST")`  (without relying on active_support)