custom publication types – Meta Query "IN" does not work with the ACF checkbox filter

I'm trying to integrate in my CPT archive page ACF filters. I start with this tutorial: https://www.advancedcustomfields.com/resources/creating-wp-archive-custom-field-filter/
It works when I use it with the ACF radio field (as in the tutorial example). Now, I'm trying to make it work with the ACF checkbox. When I select a filter, I have no results …

This is my code:

$ GLOBALS['my_query_filters'] = table (
& # 39; field_5cb6ef1f75209 & # 39; => & # 39; alcohol & # 39;
)


// action
add_action (& # 39; pre_get_posts & # 39 ;, my_pre_get_posts & # 39 ;, 10, 1);

function my_pre_get_posts ($ query) {

// endorse early if is in admin
if (is_admin ()) return;


// endorse early if not the main request
// - allows custom code / plugins to continue running
// if (! $ query-> is_main_query ()) return;

// get a meta query
$ meta_query = $ query-> get (& # 39; meta_query & # 39;);


// loop on the filters
foreach ($ GLOBALS['my_query_filters'] like $ key => $ name) {

// continue if not found in the URL
if (empty ($ _GET[ $name ])) {

Carry on;

}

// retrieve the value for this filter
// Example: http://www.website.com/events?city=melbourne,sydney
$ value = explode (#, &, $ _GET[ $name ])

// add a meta query
$ meta_query = array (
board (
& # 39; key & # 39; => $ name,
& # 39; value & # 39; => $ Value,
& # 39; compare & # 39; => & # 39; IN & # 39;
)
)

}

// meta meta query updated
$ query-> set (& # 39; meta_query & # 39 ;, $ meta_query);
return;

}

My field & # 39; alcohol & # 39; is a checkbox. When I replace it with a radio field, I'm fine. But I have to use checkboxes.

I try several solutions and I work around tables and chains, but nothing works …

Thank you !