Check if trait was loaded

Add trait check to autoloader