private function isValidOption($option)
    {
        if (array_key_exists($option, $this->options)) {
            return true;
        }

        foreach ($this->encoders as $encoder) {
            if (array_key_exists($option, $encoder->getDefaultOptions())) {
                return true;
            }
        }

        return false;
    }