So use `if not expr.args`.

This is also relevant for the solution to the second exercise here, since it works the same way for `[]` (which by the way `depth([])` doesn't work in that example).