getOrElse

fun <K, V> LiveData<out Map<K, V>>.getOrElse(key: K, defaultValue: () -> V): V

Returns the value for the given key in the LiveData's value, or the result of the defaultValue function if there was no entry for the given key or the LiveData has no value.