ensure initialization; change `!true` to `unless`

1. Ensure variable is initialized
2. Change condition to use unless instead