hasNext
Checks whether another line is available to read from the current connection.
Deliberately returns a plain Boolean rather than a Result to satisfy Kotlin's iterator convention; a missing or unreadable reader simply reports false, and next surfaces the underlying cause.
Return
true if next is expected to succeed