code: func returnLogs(logs []*types.Log) []*types.Log {
  	if logs == nil {
  		return []*types.Log{}
  	}
  	return logs
  }
docs: // returnLogs is a helper that will return an empty log array in case the given logs array is nil,
  // otherwise the given logs array is returned.