Do you need to set `check.checked = true` now that we update the check mark based on if the row is visible on screen?

Also, if this is needed, then I think you can simplify by just doing `check.checked = selectAllPending;`.