is Language Valid

fun isLanguageValid(language: String?): Boolean

Method to validate a language

Return

whether the language is valid or not as boolean

Parameters

language

: language value to check the validity