docs: function sync(method, collection, options, query) {
        //
        // Method and or collection was not provided, set default arguments.
        // Additionally default to CREATE if the method is not a string.
        //
        if (!(collection instanceof backbone.Collection)) {
          if ('string' !== typeof method) {
            options = method;
            method = 'create';
          } else {
            options = collection;
          }
  
          collection = this;
        }
  
        options = options || {};
  
        if ('create' === method) {
          if (collection.any(function anyStored(model) { return model.stored; })) method = 'update';
          if (collection.any(function anyNew(model) { return !model.stored; })) options.upsert = true;
        }
  
        return backbone.sync(method, collection, options, query);
      }