/** * Checks if the given virtual command line interface exists by id. * * @param $id The id used to create the original virtual command line interface. * * @return bool Returns true if the given $id exists otherwise false. */ static function has_cli($id) { $cli_list = VCLIManager::cli_list(); $list = []; foreach ($cli_list as $c) { $c = new GString($c); array_push($list, $c->delRightMost(chr(9))->__toString()); } return in_array($id, $list); }