Check if table exists before calling columns_hash