public function hasSubCommandConfig($name)
    {
        foreach ($this->subCommandConfigs as $commandConfig) {
            if ($name === $commandConfig->getName()) {
                return true;
            }
        }

        return false;
    }
public function hasSubCommandConfig($name)
    {
        foreach ($this->subCommandConfigs as $commandConfig) {
            if ($name === $commandConfig->getName()) {
                return true;
            }
        }

        return false;
    }
public function hasSubCommandConfig ( $ name ) { foreach ( $ this -> subCommandConfigs as $ commandConfig ) { if ( $ name === $ commandConfig -> getName ( ) ) { return true ; } } return false ; }
Returns whether the command has a sub-command with a given name.

@param string $name The name of the sub-command.

@return bool Returns `true` if the sub-command configuration with the
given name exists and `false` otherwise.

@see beginSubCommand()
Returns whether the command has a sub - command with a given name .