Helper for validation rules in Yii2