use ternary operator with correct precedence to assign default value to cookie
Merge pull request #1 from mykmelez/default-cookie

use ternary operator with correct precedence to assign default value to cookie