Correct check of return value.

From docs:
"returns 1 if the address could be converted into an IP address"
"returns 0 otherwise"

=> 0 is the "everything went ok" value.