/**
* Checks if a command exists.
*
* @param string $name The command to check.
*
* @return boolean
*
* @since 4.0.0
*/
public function has($name) : bool
{
return isset($this->commandMap[$name]) && $this->container->has($this->commandMap[$name]);
}