Returns true if the given position is within the bounds of this 2D array
position
bool isValid(Vec2 position) { try { _checkIndex(position.x, position.y); } on RangeError { return false; } return true; }