fix: check 'cookie.value' before actions

Just a small fix :)