Optionally, if you'd use `inBounds` instead of `result`, this part of code will match more to the block below (not seen here).