public function isLanguageAvailable($languageCode)
    {
        return $languageCode !== false
        && Filesystem::isValidFilename($languageCode)
        && in_array($languageCode, $this->getAvailableLanguages());
    }
public function isLanguageAvailable($languageCode)
    {
        return $languageCode !== false
        && Filesystem::isValidFilename($languageCode)
        && in_array($languageCode, $this->getAvailableLanguages());
    }
public function isLanguageAvailable ( $ languageCode ) { return $ languageCode !== false && Filesystem :: isValidFilename ( $ languageCode ) && in_array ( $ languageCode , $ this -> getAvailableLanguages ( ) ) ; }
Returns true if specified language is available

@param string $languageCode
@return bool true if language available; false otherwise
Returns true if specified language is available