This is not what is normally done in Puppet, all unresolved variables end up being nil === undef === an empty string. This is used by people in "clever" ways.