Checks if the trait exists
$trait
$autoload
true
trait
Name of the trait to check
autoload
Whether to autoload if not already loaded.
Returns true if trait exists, and false otherwise.
false