Optimize the composer_autoload check