Set class property if cookie set