      Check if string maps to a package installed via pip.
      """
      packages = pip.get_installed_distributions()
      for package in packages:
          if package.project_name.replace('-', '_') == origin:
              return True
      return False
  
  
  def get_model_package_path(package_name):
 
</s> remove def is_package(origin):
    """
    Check if string maps to a package installed via pip.
 </s> add def is_package(name):
    """Check if string maps to a package installed via pip.

    Args:
        name (unicode): Name of package.
    Returns:
        bool: True if installed package, False if not.
 </s> remove     """
    Check if a meta.json exists in a package and return its contents as a
    dictionary. If require is set to True, raise an error if no meta.json found.
 </s> add     """Check if a meta.json exists in a package and return its contents.

    Args:
        package_path (Path): Path to model package directory.
        require (bool): If True, raise error if no meta.json is found.
    Returns:
        dict or None: Model meta.json data or None. </s> remove     if type(data) == dict:
 </s> add     if isinstance(data, dict):
        if package.project_name.replace('-', '_') == name:
      Check if string maps to a package installed via pip.
      """
      packages = pip.get_installed_distributions()
      for package in packages:
        if package.project_name.replace('-', '_') == name:
              return True
      return False
  
  
  def get_model_package_path(package_name):
keep keep keep keep replace keep keep keep keep keep
 Add docstrings, error messages and fix consistency 
spacy/util.py