Add AbstractLocatorClass::hasCommand helper