Maybe just:
```
if (!cell.isEmpty())
    selectedTiles.append(cell.tile);
```