Returns true if the package is installed in pub-cache
bool isInstalled(String packageName) => findPrimaryVersion(packageName) != null;