SELECT 
  rate_id, 
  rate_value, 
  destination_id, 
  IF(rate_value = '', 0, 1) as rates_defined, 
  base_rate 
FROM 
  cscart_shipping_rates 
WHERE 
  shipping_id = 10 
  AND destination_id = 1

Query time 0.00031

JSON explain

{
  "query_block": {
    "select_id": 1,
    "table": {
      "table_name": "cscart_shipping_rates",
      "access_type": "const",
      "possible_keys": ["shipping_rate"],
      "key": "shipping_rate",
      "key_length": "6",
      "used_key_parts": ["shipping_id", "destination_id"],
      "ref": ["const", "const"],
      "rows": 1,
      "filtered": 100
    }
  }
}

Result

rate_id rate_value destination_id rates_defined base_rate
233 a:1:{s:1:"W";a:2:{i:1;a:4:{s:16:"range_from_value";d:1;s:14:"range_to_value";d:3000;s:5:"value";d:40000;s:8:"per_unit";s:1:"N";}i:3001;a:4:{s:16:"range_from_value";d:3001;s:14:"range_to_value";d:5000;s:5:"value";d:45;s:8:"per_unit";s:1:"Y";}}} 1 1 0.00