Why to use isset() ? The $product is assign just right before this condition.