The three lines can probably just be simplified to `return tries[0] <= max_tries`