code: function scan(language) {
              var i;
              for (i = 0; i < availableLanguages.length; i += 1) {
                  if (language.toLowerCase() === availableLanguages[i].toLowerCase()) {
                      return availableLanguages[i];
                  }
              }
          }
docs: check whether the list of available languages contains language; if so return it