client.connect tested for true?


One can see in many example the statement


yet in the reference it is stated that client.connect possible return values are {-4, -3, -2, -1, 1} don't these all evaluate to true?'

aamof, I have a code which, under certain conditions, consistently seems to succeeds in
if (client.connect)
and exits the following
while (client.connected())

'seems' because its a deduction from log data


implementations only return 0 or 1. I checked esp8266, Ethernet, UIPEthernet, WiFiEsp