Added new function isCookieSet