This is similar to a question I posted previously [here](https://stackoverflow.com/questions/55905374/display-message-based-on-cart-items-count-in-woocommerce-cart) but the calculation I need for a new project is different.

Rather than showing a notice based on the total quantity of items in the cart, I need to show a notice if any one product in the cart has a quantity of 1. If no items in the cart have a quantity of 1 then it doesn't need to show, but if any item does then it needs to show. Is this possible?