Checking table before drop