PackageCheck function

Check the existence of a package