You can just use 
```
if $::redis::notifyservice {}
```
This way it will still work if you use anything other than 'true'. 
F.i. 'True', 'TRUE' or even '1' would work too.