bool cellHasFlag(int index, int flag) { if (index >= _maxCols) { return false; } return cellGetFlags(index) & flag != 0; }