Widget to store 0/1 in a cookie for Yii2 Framework