static public function isValidTrigger($trigger, $throwException = true)
    {
        if (in_array($trigger, static::getTriggers(), true)) {
            return true;
        }

        if ($throwException) {
            throw new InvalidArgumentException("Invalid payment term trigger '$trigger'.");
        }

        return false;
    }