Check whether order is delivered.

$param boolean $strict
@return boolean
172176
public function isDelivered( $strict = true ) {

		if( $strict ) {

			return $this->status == self::STATUS_DELIVERED;
		}

		return $this->status >= self::STATUS_DELIVERED;
	}
437682
public static function has($key, $strict = false)
    {
        $isset = isset($_COOKIE[$key]);

        if (!$strict) {
            return $isset;
        }

        if ($isset) {
            $isset = $isset && !empty($_COOKIE[$key]);
        }

        return $isset;
    }
761017
public function contains($value, bool $strict = false): bool
    {
        return (bool) in_array($this->storage, $value, $strict);
    }
829787
public function has($key, $strict = false)
    {
        // When $strict is true, he check $key not how a key but a value.
        $isset = isset($this->storage[$key]);

        if ($isset) {
            if ($strict === true) {
                $isset = $isset && !empty($this->storage[$key]);
            }
        }

        return $isset;
    }
724919
public function indexOf($value, bool $strict = false): int
    {
        $r = $this->search($value, $strict);

        return (int) ($r === false ? -1 : $r);
    }
1241321
public function compare($strict = false)
    {
        $compare2 = $this->compare2;

        if (is_string($this->compare2)) {
            $compare2 = explode($this->separator, $this->compare2);

            $compare2 = array_map('trim', $compare2);
        }

        return CompareHelper::compare($this->compare1, $this->operator, $compare2, $strict);
    }
1069580
public function isRefunded( $strict = true ) {

		if( $strict ) {

			return $this->status == self::STATUS_REFUNDED;
		}

		return $this->status >= self::STATUS_REFUNDED;
	}
699036
public function isReturned( $strict = true ) {

		if( $strict ) {

			return $this->status == self::STATUS_RETURNED;
		}

		return $this->status >= self::STATUS_RETURNED;
	}
221076
public function checkCondition(QuoteTransfer $quoteTransfer, CheckoutResponseTransfer $checkoutResponse): bool
    {
        $isPassed = true;

        $groupedItems = $this->groupItemsBySkuAndDeliveryDate($quoteTransfer->getItems());

        foreach ($groupedItems as $deliveryDate => $skus) {
            foreach ($skus as $sku => $quantity) {

                $isAvailable = $this->isProductAvailable(
                    $deliveryDate,
                    $sku,
                    $quantity,
                    $this->conditionalAvailabilityConfig->getDefaultWarehouse()
                );

                if ($isAvailable) {
                    continue;
                }

                $this->addAvailabilityErrorToCheckoutResponse($checkoutResponse, $sku);
                $isPassed = false;
            }
        }

        return $isPassed;
    }
1264965
public static function isProvider($param)
    {
        $isValid = false;

        if(isset($param['providerId']) && !(CheckoutApi_Lib_Validator::isEmpty($param['providerId']))) {
            $isValid = true;
        }
        return $isValid;
    }
416494
public function matches($value, $strict = true)
    {
        return $strict ? $this->value === $value : $this->value == $value;
    }
271300
protected function validateOrderCart()
    {
        $field = 'order_id';
        $value = $this->getSubmitted($field);

        if (empty($value)) {
            return null;
        }

        $label = $this->translation->text('Order');

        if (!is_numeric($value)) {
            $this->setErrorNumeric($field, $label);
            return false;
        }

        $order = $this->order->get($value);

        if (empty($order['order_id'])) {
            $this->setErrorUnavailable($field, $label);
            return false;
        }

        return true;
    }
677688
public static function mbstringLoaded($strict = false)
	{
		static $extension, $polyfill;

		if(is_null($extension))
			$extension = extension_loaded('mbstring');

		if(is_null($polyfill))
			$polyfill = function_exists('mb_strlen');

		return ($extension || (!$strict && $polyfill));
	}
472673
public function compare($strict = false)
    {
        return CompareHelper::compare($this->compare1, $this->operator, $this->compare2, $strict);
    }
711603
public static function isSameHost($url1, $url2, $strict = true) {
		return strcasecmp(self::getHost($url1, !$strict), self::getHost($url2, !$strict)) == 0;
	}
954379
public static function neq($val, $expected, $strict = true): bool
    {
        return $strict ? $val !== $expected : $val != $expected;
    }
700008
public function isCouponRemovingPostage(Order $order)
    {
        $coupons = $this->facade->getCurrentCoupons();

        if (\count($coupons) == 0) {
            return false;
        }

        $couponsKept = $this->sortCoupons($coupons);

        /** @var CouponInterface $coupon */
        foreach ($couponsKept as $coupon) {
            if ($coupon->isRemovingPostage()) {
                // Check if delivery country is on the list of countries for which delivery is free
                // If the list is empty, the shipping is free for all countries.
                $couponCountries = $coupon->getFreeShippingForCountries();

                if (! $couponCountries->isEmpty()) {
                    if (null === $deliveryAddress = AddressQuery::create()->findPk($order->getChoosenDeliveryAddress())) {
                        continue;
                    }

                    $countryValid = false;

                    $deliveryCountryId = $deliveryAddress->getCountryId();

                    /** @var CouponCountry $couponCountry */
                    foreach ($couponCountries as $couponCountry) {
                        if ($deliveryCountryId == $couponCountry->getCountryId()) {
                            $countryValid = true;
                            break;
                        }
                    }

                    if (! $countryValid) {
                        continue;
                    }
                }

                // Check if shipping method is on the list of methods for which delivery is free
                // If the list is empty, the shipping is free for all methods.
                $couponModules = $coupon->getFreeShippingForModules();

                if (! $couponModules->isEmpty()) {
                    $moduleValid = false;

                    $shippingModuleId = $order->getDeliveryModuleId();

                    /** @var CouponModule $couponModule */
                    foreach ($couponModules as $couponModule) {
                        if ($shippingModuleId == $couponModule->getModuleId()) {
                            $moduleValid = true;
                            break;
                        }
                    }

                    if (! $moduleValid) {
                        continue;
                    }
                }

                // All conditions are met, the shipping is free !
                return true;
            }
        }

        return false;
    }