public static boolean hasErrors() {
        return !errors.equals("");
    }
Tests whether there were errors initializing language config

@return true if there are errors. Use getErrors() to retrieve.
tika-langdetect/tika-langdetect-tika/src/main/java/org/apache/tika/langdetect/tika/LanguageIdentifier.java