src/Language.php
public function translationExists($lang, $alias) {
		$tree = $this->getTree($lang);

		foreach ($tree as $branch) {
			if (isset($branch[$alias])) return true;
		}
		return false;
	}
public function translationExists($lang, $alias) {
		$tree = $this->getTree($lang);

		foreach ($tree as $branch) {
			if (isset($branch[$alias])) return true;
		}
		return false;
	}
public function translationExists ( $ lang , $ alias ) { $ tree = $ this -> getTree ( $ lang ) ; foreach ( $ tree as $ branch ) { if ( isset ( $ branch [ $ alias ] ) ) return true ; } return false ; }
Checks whether a page alias exists in the given language or not.
@param	string	$lang	A language key.
@param	string	$alias	A page alias.
@return	`bool`
Checks whether a page alias exists in the given language or not .