Check if cookie exists.