I think $::selinux is a string since it comes from facter. You may want to use str2bool.