SELECT 
  cscart_languages.lang_code, 
  cscart_languages.name 
FROM 
  cscart_languages 
  LEFT JOIN cscart_storefronts_languages AS storefronts_languages ON storefronts_languages.language_id = cscart_languages.lang_id 
WHERE 
  1 
  AND cscart_languages.status = 'A' 
  AND (
    storefronts_languages.storefront_id = 1 
    OR storefronts_languages.storefront_id IS NULL
  )

Query time 0.00014

JSON explain

{
  "query_block": {
    "select_id": 1,
    "nested_loop": [
      {
        "table": {
          "table_name": "cscart_languages",
          "access_type": "system",
          "rows": 1,
          "filtered": 100
        }
      },
      {
        "table": {
          "table_name": "storefronts_languages",
          "access_type": "system",
          "possible_keys": ["PRIMARY", "idx_storefront_id"],
          "rows": 0,
          "filtered": 0,
          "const_row_not_found": true
        }
      }
    ]
  }
}

Result

lang_code name
en English