public function hasOption($option) {
        if (!is_string($option)) {
            throw new \Console\Exception\InvalidArgument('Parameter must be string.');
        }

        return isset($this->_options[$option]);
    }