You could just add -f to rm, then it doesn't report an error if ti doesn't exist.