code: function checkNetworks(networks) {
      var result = true;
      var check = null;
      networks.forEach(function (network) {
          // Null
          if (network == null) {
              result = false;
              return;
          }
          // Have nothing to compre to yet
          if (check == null) {
              check = network;
              return;
          }
          // Matches!
          if (check.name === network.name &&
              check.chainId === network.chainId &&
              ((check.ensAddress === network.ensAddress) ||
                  (check.ensAddress == null && network.ensAddress == null))) {
              return;
          }
          errors.throwError('provider mismatch', errors.INVALID_ARGUMENT, { arg: 'networks', value: networks });
      });
      return result;
  }
docs: Returns: - true is all networks match - false if any network is null - throws if any 2 networks do not match