public function VendorBasicInfoNameIsExist($name) { $dao = new DaoVendorInfo(); $vendor = $dao->getVendorInfoByName($name); if (count($vendor) == 0) { return false; } else { return true; } }