trait_exists Checks if the trait exists &reftitle.description; booltrait_exists stringtrait boolautoload&true; &reftitle.parameters; trait Name of the trait to check autoload Whether to autoload if not already loaded. &reftitle.returnvalues; Returns &true; if trait exists, &false; if not, &null; in case of an error.