you should not omit brackets `{}`
```php
if($model === null){
    throw new CHttpException(404,'The requested page does not exist.');
}
return $model;
```