add logical table exist check