Check for table existence before dropping