Pairs: checking if tables exist and removing them