Refactor _retry to allow zero-values