Our typical style would be to do:

```
unless value.nil?   
  script "boolean_#{boolean}" do
    interpreter "bash"
    code "setsebool -P #{boolean} #{value}"
    not_if "getsebool #{boolean} |egrep -q \" #{value}\"$"
  end
end