In WooCommerce cart page I am using the code below to check if specific shipping method is enabled, but the condition on the if statement is always true, so it doesn't work.
global $woocommerce;
$shipping_methods = $woocommerce->shipping->load_shipping_methods();
if ( $shipping_methods['free_shipping']->enabled == "yes" ) {
}
How can I Check on cart page if specific shipping method is enabled?