private function isBundleExternal($bundle) { return empty($bundle->sourcePath) && empty($bundle->basePath); }