Since you are setting the value of retries above, would this be simpler as just `retries > 0` instead of calling retry_condition?