Is it possible to hide suggestion keywords if there are no products?

I want to hide those suggestion keywords if they don’t have products. For example, I have attached two screenshots. I have searched “Milk” and the top 1 is showing “Milk Lacasa” when I click on it there are no products found. I just want to hide keywords temporarily whenever the product has come back.