static public function isValidMode($mode, $throw = true)
    {
        if (in_array($mode, static::getModes(), true)) {
            return true;
        }

        if ($throw) {
            throw new InvalidArgumentException('Invalid adjustment mode.');
        }

        return false;
    }