void commitRowIfNotEmpty(){
  if (currentRow.size() > 0) {
    commitRow();
  }
}

void commitRowIfNotEmpty ( ) { if ( currentRow . size ( ) > 0 ) { commitRow ( ) ; } }
commits the current row only if it is not empty
