the *hash.empty?* condition is fulfilled with the *hash.has_key(href_prop_name)* condition and the *hash.kind_of? Hash* is checked when calling the *to_simple_reference* method.