isNotEmpty

val Source.isNotEmpty: Boolean

Deprecated

This makes no sense for streaming inputs. Some use-cases are covered by exhausted() method

Replace with

!exhausted()

For streaming input there is no reliable way to detect it without triggering bytes population from the underlying source. Consider using Input.endOfInput or use ByteReadPacket instead.