Find existing products

did this block of code come from somewhere else?