Query Product categories what have a custom field

The meta is within the taxonomy (so I have the standard, category name, slug, description etc and then I added a collectable tickbox to the category itself not the post/product)

I solved this by Running a query for all sub categories and then I put an if statement in so it shows only categories with the collectable box ticked.

(used toolset for the custom field in the end)

$parent_id = 16;
$args = array(
        'hierarchical' => 1,
        'show_option_none' => '',
        'hide_empty' => 0, 
        'parent' => $parent_id,
        'taxonomy' => 'product_cat'
    );
    $subcategories = get_categories($args);
   );
   foreach ($subcategories as $category) {
    
    $st_var = $category->to_array();
    $thumbnail_id =  types_render_termmeta("collectable",array("term_id" =>$st_var['term_id']));   
    if ( $thumbnail_id ) {

          /// Put my html here, category name, image, link etc

    }
}