Tests a cell. If grid is provided, cell will be checked that it's inside the bounds of the grid.
grid
Optional
Tests a cell. If
gridis provided, cell will be checked that it's inside the bounds of the grid.