perhaps better rendered as ! tasks.empty?