ReceiveBuffer boolean evaluation returns incorrect results
ReceiveBuffer boolean evaluation returns incorrect results: a task in UltraTerminal (Harbor dataset). When checking if a ReceiveBuffer has data using boolean evaluation (e.g., if buffer: ), the result is incorrect due to a logic error in the bool method.
The task
When checking if a ReceiveBuffer has data using boolean evaluation (e.g., `if buffer:`), the result is incorrect due to a logic error in the `__bool__` method.
Part of harness-hub/UltraTerminal.