Adding proper cookielaw check