jquery multi checkbox is checked with same class : i am having problem getting this code to work

i have multi checkbox that are also added with ajax

trying to trigger a click if the checkbox are not checked

the html 

            <input type="checkbox" class="variable_manage_stock" name="variable_manage_stock[0]">
            <input type="checkbox" class="variable_manage_stock" name="variable_manage_stock[1]">
            <input type="checkbox" class="variable_manage_stock" name="variable_manage_stock[2]">
            <input type="checkbox" class="variable_manage_stock" name="variable_manage_stock[3]">


this is the code i am using 

            if($(".variable_manage_stock").prop('checked') == false){
            $('.variable_manage_stock').trigger('click');
             }

but this is not working for all the checkboxes 

thank you