added functions to handle an empty cookie setting
updates to deal with an empty NYT_W2 cookie