There is already a way to check if Cookies are enabled… developer.mozilla.org/en-US/docs…
if ( ! navigator.cookieEnabled ) {
// Don’t show annoying pop up banner because cookies don’t work anyway
} else {
// I don’t mind cookies, please stop asking me with banners
}