table exists check before drop