minor condition change

there's no guarantee that the function will return 1 on success, at least not in the documentation
Merge pull request #199 from chinhodado/patch-1

minor condition change