\Bitrix\Sale\BasketBase::getItemByBasketCode($code);
Method returns shopping cart item by ID. Non-static method.
When product is not found, returns null.
null