code: public function hasPackage(PackageInterface $package)
      {
          foreach ($this->repositories as $repository) {
              /* @var $repository RepositoryInterface */
              if ($repository->hasPackage($package)) {
                  return true;
              }
          }
  
          return false;
      }
docs: {@inheritdoc}