Automatically Query Parent Taxonomy WordPress

SOLVED

I have a custom taxonomy on my site that I query from the sidebar of the currently displayed term. Say I am on the `Term X` archives, then my custom post type of Products with the term of `Term X` are shown.

I would like to avoid an empty result so I would like to query up the chain until posts are found. For example: