original_string: protected function _isLanguage($sourceSurveyId, $language)
      {
          if ($language && strlen($language)) {
              // Check for availability of language
              $sql = 'SELECT surveyls_language FROM ' . $this->_getSurveyLanguagesTableName() . ' WHERE surveyls_survey_id = ? AND surveyls_language = ?';
              $lsDb = $this->getSourceDatabase();
  
              return $lsDb->fetchOne($sql, array($sourceSurveyId, $language));
          }
  
          return false;
      }
code: protected function _isLanguage($sourceSurveyId, $language)
      {
          if ($language && strlen($language)) {
              // Check for availability of language
              $sql = 'SELECT surveyls_language FROM ' . $this->_getSurveyLanguagesTableName() . ' WHERE surveyls_survey_id = ? AND surveyls_language = ?';
              $lsDb = $this->getSourceDatabase();
  
              return $lsDb->fetchOne($sql, array($sourceSurveyId, $language));
          }
  
          return false;
      }
code_tokens: protected function _isLanguage ( $ sourceSurveyId , $ language ) { if ( $ language && strlen ( $ language ) ) { // Check for availability of language $ sql = 'SELECT surveyls_language FROM ' . $ this -> _getSurveyLanguagesTableName ( ) . ' WHERE surveyls_survey_id = ? AND surveyls_language = ?' ; $ lsDb = $ this -> getSourceDatabase ( ) ; return $ lsDb -> fetchOne ( $ sql , array ( $ sourceSurveyId , $ language ) ) ; } return false ; }
docstring: Check if the specified language is available in Lime Survey
  
  @param int $sourceSurveyId Survey ID
  @param string $language       (ISO) Language
  @return boolean True when the language is an existing language
docstring_tokens: Check if the specified language is available in Lime Survey