Added check for null cookie