`Puppet::PUPPETVERSION.start_with?('2.6')` would be a little neater.