0 evaluates to false in a logical context, allow a zero to be returned for totalRows
Merge pull request #324 from camallen/zero_totalRows

0 evaluates to false in a logical context, allow a zero to be returned for totalRows