Add method to check if a cell is merged