I agree with @markstory. With current check if composer is being used ClassLoader would be unnecessarily loaded.