isPackageInstalled implementation