better yii path validation