check for none type for package version instead of empty string