Add "exists()" methods for package and version.