Fix syntax error in undefined check on cookie