usually with short condition you can use trailing form like
```
ip = "[#{ip}]" if IP.Check6(ip)
```

I also see this operation quite often, is possible that it will change in future? if so, then I recommend to have it in one place, so you don't need to check all code