This seems to be not correct. Because `equals()` checks same, so if here you do that check, and in next line opposide one, it will never pass those two.

Additionally, `equals()` check is not correct, it should be:
```php
function equals(OrderItemInterface $orderItem) {
    return $orderItem->getId() === $this->getId();
}