private function validateOptions(array $options) {
        foreach ($options as $key => $value) {
            if (!is_int($key)) return $this->invalidArgumentException('Error while setting a curl option (http://php.net/manual/de/function.curl-setopt.php). Tried to set ' . $key . ' on curl resource.');
        }
        return $this;
    }