code: func newOrderValid(order *corepb.Order) bool {
  	return !(order.RegistrationID == nil || order.Expires == nil || order.Authorizations == nil || order.Names == nil)
  }
docs: // newOrderValid checks that a corepb.Order is valid. It allows for a nil
  // `order.Id` because the order has not been assigned an ID yet when it is being
  // created initially. It allows `order.BeganProcessing` to be nil because
  // `sa.NewOrder` explicitly sets it to the default value. It allows
  // `order.Created` to be nil because the SA populates this. It also allows
  // `order.CertificateSerial` to be nil such that it can be used in places where
  // the order has not been finalized yet.