code: func isCommandStillInUse(id string) (bool, error) {
  	dp, err := dbClient.GetDeviceProfilesByCommandId(id)
  
  	if err == db.ErrNotFound { // XXX Inconsistent return values. Should be ErrNotFound
  		err = nil
  	} else if err != nil {
  		return false, err
  	}
  
  	if len(dp) == 0 {
  		return false, err
  	}
  
  	return true, err
  }
docs: // Helper function to determine if the command is still in use by device profiles