/** * @param AssetPackage $package * @return bool */ public function exists(AssetPackage $package) { return (new Query())->from('package')->where(['type' => $package->getType(), 'name' => $package->getName()])->exists($this->db); }