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

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

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

@param string $name The name of the command.

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

@see beginCommand()
Returns whether the application has a command with a given name .