dsvoronin
fun <T> List<T>.switchIfEmpty(replacement: List<T>): List<T> = if (this.isEmpty()) replacement else this