implement isInstalled (check if package is installed)