added zero product ids checking