code: function checkOrGenerateId (data) {
          data = data || {};
          if (!data._id) {
            data._id = apos.utils.generateId();
          }
          return data;
        }
docs: Checks for an id or assign a generated one