static public function checkOptionValue($option, $value, $throw = true) {

        if (!static::$option_value_types) {
            static::loadOptions();
        }

        if(static::isValidOption($option)) {
            $result = static::checkType($value, static::$option_value_types[$option]);

            if(!$result && $throw) {
                throw new \InvalidArgumentException("Invalid value for the given cURL option");
            }

            return $result;
        } else {
            throw new \InvalidArgumentException("Not a valid cURL option");
        }
    }