protected function hasAutoloader($path)
    {
        if (is_dir($path)) {
            $finder = new \Symfony\Component\Finder\Finder();
            $bundles = $finder->files()->depth(0)->name('autoload.json')->in($path);
            if (count($bundles) == 1) {
                return true;
            }
        }

        return false;
    }