isFailure

Returns true if this instance represents a failed outcome. In this case isSuccess returns false.

Since Kotlin

1.3