def _is_new_deployment():
  """Checks whether this is a new deployment.

    A '0.0' version number and a missing bootstrap_datastore_yaml task
    status indicates that this is a new deployment. The latter check
    is to support backward-compatibility with early alpha versions that did not
    have a version number.

  Returns:
    True if this is a new deployment, else False.
  """
  return (config_model.Config.get('running_version') == '0.0' and
          not bootstrap_status_model.BootstrapStatus.get_by_id(
              'bootstrap_datastore_yaml'))