size_t is unsigned type, if rowCount == 1 your expression will be true