common/models/entities/City.php
public static function isUniqueExistByZone( $name, $countryId, $provinceId, $zone ) {

		$city = self::findUniqueByZone( $name, $countryId, $provinceId, $zone );

		return isset( $city );
	}
public static function isUniqueExistByZone( $name, $countryId, $provinceId, $zone ) {

		$city = self::findUniqueByZone( $name, $countryId, $provinceId, $zone );

		return isset( $city );
	}
public static function isUniqueExistByZone ( $ name , $ countryId , $ provinceId , $ zone ) { $ city = self :: findUniqueByZone ( $ name , $ countryId , $ provinceId , $ zone ) ; return isset ( $ city ) ; }
Check whether a city already exist using given name within zone.

@param string $name
@param integer $countryId
@param integer $provinceId
@return boolean
Check whether a city already exist using given name within zone .