User blog comment:QuasarBooster/Beklemishev's Worms python code/@comment-3427444-20180322054347

You can change  to simply , because lists are considered false if it's empty, and true otherwise.