use scope.lookupvar to test variable - support in puppet 3