Generally solution is okay, but return should be `return self::$_imports[$alias]=$alias;` to know class has been loaded on next call.