boolean (final RadContainer grid, final int[] cells, final boolean row) { // for multiple cells, we can't determine if deleting all cells will have a correct result for(int cell: cells) { CellStatus status = canDeleteCell(grid, cell, row); if (status != CellStatus.Empty) { if (cells.length == 1 && status == CellStatus.Redundant) { return true; } return false; } } return true; }