valueOrDefault

Extension function to get value or return default