trait_exists Checks if the trait exists &reftitle.description; booltrait_exists stringtraitname boolautoload &reftitle.parameters; traitname 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.