Simplify "done" test.