don't set a hash to an empty hash reference