Hello,
Thank you for your feedback !
For more information, the "unset'($usable_methods[$key]" is only used to unset shipping services that are disabled by the owner of the shop through the configuration page of that shipping method, here is an example of how we do it through the UPS shipping plugin :
//Comparing method received by UPS and allowed method
foreach($warehouse->methods as $i => $method){
if(!in_array($method['code'], $rate->shipping_params->methods)){
unset($usableWarehouses[$k]->methods[$i]);
}
}