get_value_or_default

@nielsvanoch review and merge please