public function isValidDelivery(Country $country)
    {
        return $this->getRequest()->getSession()->getSessionCart($this->getDispatcher())->isVirtual();
    }
public function isValidDelivery(Country $country)
    {
        return $this->getRequest()->getSession()->getSessionCart($this->getDispatcher())->isVirtual();
    }
public function isValidDelivery ( Country $ country ) { return $ this -> getRequest ( ) -> getSession ( ) -> getSessionCart ( $ this -> getDispatcher ( ) ) -> isVirtual ( ) ; }
The module is valid if the cart contains only virtual products.

@param Country $country

@return bool true if there is only virtual products in cart elsewhere false
The module is valid if the cart contains only virtual products .