change unless statements to if statements for Old Puppet