Add cookie existance check.