private function setSubjectState(StockSubjectInterface $subject, $state)
    {
        if ($subject->getStockState() != $state) {
            $subject->setStockState($state);

            return true;
        }

        return false;
    }