getOrDefault

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

Returns the value corresponding to the given key in the LiveData's value, or defaultValue if such a key is not present in the map or the LiveData has no value.