public function hasPackage(PackageInterface $package) { return isset($this->packages[$package->getName()]); }