ああないときの話をしてんのか
if product.find(class_='item-name') is not None:
とか何とか書けばいいだけだろ