This check is unnecessary. `rm -rf` won't fail if given a nonexistent directory.