src/sap.m/src/sap/m/HyphenationSupport.js
function isValidTextKey(oControl, sKey) {
			var mTexts = oControl.getTextsToBeHyphenated();

			if (typeof mTexts !== "object") {
				Log.error("[UI5 Hyphenation] The result of getTextsToBeHyphenated method is not a map object.", oControl.getId());
				return false;
			}

			if (Object.keys(mTexts).indexOf(sKey) < 0) {
				Log.error("[UI5 Hyphenation] The key " + sKey + " is not found in the result of getTextsToBeHyphenated method.", oControl.getId());
				return false;
			}

			return true;
		}
function isValidTextKey(oControl, sKey) {
			var mTexts = oControl.getTextsToBeHyphenated();

			if (typeof mTexts !== "object") {
				Log.error("[UI5 Hyphenation] The result of getTextsToBeHyphenated method is not a map object.", oControl.getId());
				return false;
			}

			if (Object.keys(mTexts).indexOf(sKey) < 0) {
				Log.error("[UI5 Hyphenation] The key " + sKey + " is not found in the result of getTextsToBeHyphenated method.", oControl.getId());
				return false;
			}

			return true;
		}
function isValidTextKey ( oControl , sKey ) { var mTexts = oControl . getTextsToBeHyphenated ( ) ; if ( typeof mTexts !== "object" ) { Log . error ( "[UI5 Hyphenation] The result of getTextsToBeHyphenated method is not a map object." , oControl . getId ( ) ) ; return false ; } if ( Object . keys ( mTexts ) . indexOf ( sKey ) < 0 ) { Log . error ( "[UI5 Hyphenation] The key " + sKey + " is not found in the result of getTextsToBeHyphenated method." , oControl . getId ( ) ) ; return false ; } return true ; }
Checks if the required text key is present in the texts map.

@param {sap.m.IHyphenation} oControl The control to be checked
@param {string} sKey The key to look for
@returns {boolean} True if the key is correct
@private
Checks if the required text key is present in the texts map .