tableExists helper function