add getByName() and hasPackage() to PackageCollection