Fixes isValidRow to be global and use all with block.