db(0)->where(array('pid'=>I('id')))->count() == 0); } } ?>