ifEmpty

infix inline fun <T : Iterable<R>, R> ApiResult<T>.ifEmpty(block: () -> Unit): ApiResult<T>

Execute block if this's collection is empty.