public function validateOptions(array $options)
    {
        foreach ($options as $option => $value)
        {
            if (!in_array($option, $this->allowedOptions))
                throw new InvalidOptionException("Option [$option] is not valid");
        }

        return $this;
    }