I am new to Yii. I am doing a scenario to export to Excel option. I am half way through. The values are getting populated in the necessary field. But if Empty value is present the cell In Excel gets the next column value, so there is a mismatch happening, so how to perform a blank cell in Excel Export. 

```
    if(!empty($cmApprRes)){
                        foreach($cmApprRes as $log){
                            $arrData[$i][]=CHtml::encode($log->cm_log_description);
                        }
                    }

                    else
//if there is no data in the log table the corresponding column should be shown as blank.
//but that is not working please suggest an option for else
                    {

                    }

```

Thanks in advance.