h_default_if_empty function

Getting the default value for an empty object