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;
    }