Test for app existence before deleting