Well caught - yes there is :-)
In lieu of:
try:
Code:
numberOfRemainingTasks > 0
(the problem with
childrenCount is that it includes, for a start, any completed tasks)
Thanks for my drawing attention to that, I'll update the comments in the script file.
--