ShouldWriteToRequest method

bool ShouldWriteToRequest()
Determine whether we should write collection to XML or not.

Implementation

bool ShouldWriteToRequest() {
  // Only write collection if it has at least one element.
  return Count > 0;
}