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

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

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

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

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

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