protected function checkIfKeysAreSafe(string $fileName, array $array)
    {
        $languageFile = $this->getLanguageFile($fileName, true);

        foreach ($array as $key => $value) {
            if (isset($key[0])) {
                if ($key[0] === '_' || $key[0] === '.') {
                    continue;
                }
            }

            if (!array_key_exists($key, $languageFile)) {
                return false;
            }
        }

        return true;
    }
protected function checkIfKeysAreSafe(string $fileName, array $array)
    {
        $languageFile = $this->getLanguageFile($fileName, true);

        foreach ($array as $key => $value) {
            if (isset($key[0])) {
                if ($key[0] === '_' || $key[0] === '.') {
                    continue;
                }
            }

            if (!array_key_exists($key, $languageFile)) {
                return false;
            }
        }

        return true;
    }
protected function checkIfKeysAreSafe ( string $ fileName , array $ array ) { $ languageFile = $ this -> getLanguageFile ( $ fileName , true ) ; foreach ( $ array as $ key => $ value ) { if ( isset ( $ key [ 0 ] ) ) { if ( $ key [ 0 ] === '_' || $ key [ 0 ] === '.' ) { continue ; } } if ( ! array_key_exists ( $ key , $ languageFile ) ) { return false ; } } return true ; }
Check if input keys are safe, i.e. all its keys are contained in the default locale language file.

@param  string $fileName
@param  array $array

@return bool
Check if input keys are safe i . e . all its keys are contained in the default locale language file .