public function isAvailable()
    {
        $package = AssetPackage::fromFullName($this->getFullName());

        $repository = Yii::createObject(PackageRepository::class, []);

        return $repository->exists($package);
    }
public function isAvailable()
    {
        $package = AssetPackage::fromFullName($this->getFullName());

        $repository = Yii::createObject(PackageRepository::class, []);

        return $repository->exists($package);
    }
public function isAvailable ( ) { $ package = AssetPackage :: fromFullName ( $ this -> getFullName ( ) ) ; $ repository = Yii :: createObject ( PackageRepository :: class , [ ] ) ; return $ repository -> exists ( $ package ) ; }
Check the package exists in Asset-Packagist.
@return boolean
Check the package exists in Asset - Packagist .