Check if a setting exists before setting it

hiera_config doesn't exist in Puppet < 3.x