You may need to declare it outside the unless. Alternatively, just use `if/else` which might make more sense.