Wouldn't it be better to use [exists()](http://www.yiiframework.com/doc/api/1.1/CActiveRecord#exists-detail) instead of suppressing the error when no record is found?