code: func isIntervalStillInUse(s contract.Interval) (bool, error) {
  	var intervalActions []contract.IntervalAction
  
  	intervalActions, err := dbClient.IntervalActionsByIntervalName(s.Name)
  	if err != nil {
  		return false, err
  	}
  	if len(intervalActions) > 0 {
  		return true, nil
  	}
  
  	return false, nil
  }
docs: // Helper function