minor condition change

there's no guarantee that the function will return 1 on success, just a non-zero one