private function isInStockProduct(ProductInterface $product)
    {
        $isInStock = false;
        $document = $this->getDocumentSource($product);
        if (isset($document['stock']['is_in_stock'])) {
            $isInStock = (bool) $document['stock']['is_in_stock'];
        }

        return $isInStock;
    }
private function isInStockProduct(ProductInterface $product)
    {
        $isInStock = false;
        $document = $this->getDocumentSource($product);
        if (isset($document['stock']['is_in_stock'])) {
            $isInStock = (bool) $document['stock']['is_in_stock'];
        }

        return $isInStock;
    }
private function isInStockProduct ( ProductInterface $ product ) { $ isInStock = false ; $ document = $ this -> getDocumentSource ( $ product ) ; if ( isset ( $ document [ 'stock' ] [ 'is_in_stock' ] ) ) { $ isInStock = ( bool ) $ document [ 'stock' ] [ 'is_in_stock' ] ; } return $ isInStock ; }
Returns current product stock status.

@param ProductInterface $product Product.

@return bool
Returns current product stock status .