Common/Model/AdjustableTrait.php
public function hasAdjustments($type = null)
    {
        if (null !== $type) {
            AdjustmentTypes::isValidType($type);

            return $this->getAdjustments($type)->count();
        }

        return 0 < $this->adjustments->count();
    }
public function hasAdjustments($type = null)
    {
        if (null !== $type) {
            AdjustmentTypes::isValidType($type);

            return $this->getAdjustments($type)->count();
        }

        return 0 < $this->adjustments->count();
    }
Returns whether the adjustable has adjustments or not, optionally filtered by type.

@param string $type

@return bool