src/mako/i18n/I18n.php
public function has(string $key, ?string $language = null): bool
	{
		[$file, $string] = $this->parseKey($key);

		if($string === null)
		{
			return false;
		}

		$strings = $this->getStrings($language ?? $this->language, $file);

		return Arr::has($strings, $string) && is_string(Arr::get($strings, $string));
	}
public function has(string $key, ?string $language = null): bool
	{
		[$file, $string] = $this->parseKey($key);

		if($string === null)
		{
			return false;
		}

		$strings = $this->getStrings($language ?? $this->language, $file);

		return Arr::has($strings, $string) && is_string(Arr::get($strings, $string));
	}
public function has ( string $ key , ? string $ language = null ) : bool { [ $ file , $ string ] = $ this -> parseKey ( $ key ) ; if ( $ string === null ) { return false ; } $ strings = $ this -> getStrings ( $ language ?? $ this -> language , $ file ) ; return Arr :: has ( $ strings , $ string ) && is_string ( Arr :: get ( $ strings , $ string ) ) ; }
Returns TRUE if the string exists and FALSE if not.

@param  string      $key      String to translate
@param  string|null $language Name of the language pack
@return bool
Returns TRUE if the string exists and FALSE if not .