Use proper defined check for cookie value