Added conditionals to verify snaps are there before trying to delete them.