added if else to cookie

do you want a cookie?