Check for cookie!=null.