$arProduct = CCatalogProduct::GetByID($PRODUCT_ID); if ($arProduct === false) { $GLOBALS["APPLICATION"]->ThrowException(GetMessage('CATALOG_ERR_NO_PRODUCT'), "NO_PRODUCT"); return false; }