code: function isLoaded(modulesNames) {
                      var moduleLoaded = function moduleLoaded(module) {
                          var isLoaded = regModules.indexOf(module) > -1;
                          if (!isLoaded) {
                              isLoaded = !!moduleExists(module);
                          }
                          return isLoaded;
                      };
                      if (angular.isString(modulesNames)) {
                          modulesNames = [modulesNames];
                      }
                      if (angular.isArray(modulesNames)) {
                          var i, len;
                          for (i = 0, len = modulesNames.length; i < len; i++) {
                              if (!moduleLoaded(modulesNames[i])) {
                                  return false;
                              }
                          }
                          return true;
                      } else {
                          throw new Error('You need to define the module(s) name(s)');
                      }
                  }
docs: Let you check if a module has been loaded into Angular or not
  @param modulesNames String/Object a module name, or a list of module names
  @returns {boolean}