How to show Pick Up Unavailable message when pick_up_enabled is false?

I’m working to customize the Pickup Availability section on our product pages. Everything looks great when a product is available for pick up. However, no message is shown on products when they are unavailable for pick up. This seems like it should be easy to do, but I’m just not sure how to make it work in liquid. Here’s the relevant snip of our store_availability.liquid code:


  {%- assign pick_up_availabilities = product_variant.store_availabilities | where: 'pick_up_enabled', true -%}
  {%- if pick_up_availabilities.size > 0 -%}
    

      {%- assign closest_location = pick_up_availabilities.first -%}
      {%- if closest_location.available -%}
        
      {%- else -%}
        
      {%- endif -%}
      

        {%- if closest_location.available -%}
          

            {{ 'store_availability.general.pick_up_available_at_html' | t: location_name: "Local Location Name" }}
          

        {%- else -%}
          

            {{ 'store_availability.general.pick_up_unavailable_at_html' | t: location_name: "Local Location Name" }}
          

          {%- if pick_up_availabilities.size > 1 -%}
            

              
                {{ 'store_availability.general.check_other_stores' | t }}
              
            

          {%- endif -%}
      {%- endif -%}
      

    

It seems like this part should have it show an unavailability message… but, I know just enough code to bugger around with things, and not enough to tell for sure if this is the right trigger to get an alternate message to show:

{%- if closest_location.available -%}>
{{ ‘store_availability.general.pick_up_available_at_html’ | t: location_name: “Local Location Name” }}>
{%- else -%}>

{{ ‘store_availability.general.pick_up_unavailable_at_html’ | t: location_name: “Local Location Name” }}>

Please help if you can tell me where I’m going wrong! Thanks!