public function getOption($name, $default = null)
    {
        $pug = $this->getPug();

        try {
            if (method_exists($pug, 'hasOption') && !$pug->hasOption($name)) {
                throw new \InvalidArgumentException('invalid option');
            }

            return $pug->getOption($name);
        } catch (\InvalidArgumentException $exception) {
            return $default;
        }
    }