function getAllTransactions(collection, allRequests) {
    if (!_.has(collection, 'item') || !_.isArray(collection.item)) {
      return;
    }
    _.forEach(collection.item, (item) => {
      if (_.has(item, 'request') || _.has(item, 'response')) {
        allRequests.push(item);
      }
      else {
        getAllTransactions(item, allRequests);
      }
    });
  }
@description Takes in a collection and a buffered allRequests array

@param {object} collection a postman collection object
@param {Array} allRequests array as buffer
@returns {undefined} nothing