tweak exists test to be more focused
simplify exists function, add delete docstring