src/Operation/Traits/OptionsTrait.php
protected function hasOption(string $name): bool
    {
        if (array_key_exists($name, $this->options)) {
            return true;
        }

        if (!isset($this->aliases) || !isset($this->aliases[$name])) {
            return false;
        }

        foreach ($this->aliases[$name] as $name) {
            return $this->hasOption($name);
        }

        return false;
    }
protected function hasOption(string $name): bool
    {
        if (array_key_exists($name, $this->options)) {
            return true;
        }

        if (!isset($this->aliases) || !isset($this->aliases[$name])) {
            return false;
        }

        foreach ($this->aliases[$name] as $name) {
            return $this->hasOption($name);
        }

        return false;
    }
@param string $name

@return bool