You do not need to check explicitly for nil here, as String#index returns either an integer or nil, and nil is always false.
```unless distro.index "openSUSE"``` would be enough.