input: Write a function to edit the given Python code to perform a correct API request with authorization headers and parse the response. If the response has data, iterate through it and print each user. Otherwise, handle potential errors or empty responses.
  assert api_request_handler(["https://api.example.com/users", "YOUR_API_TOKEN"])==[{'id': 1, 'name': 'Alice'}, {'id': 2, 'name': 'Bob'}]
  assert api_request_handler(["https://api.example.com/users", "INVALID_TOKEN"])==[]
  assert api_request_handler(["https://api.example.com/invalid-users", "YOUR_API_TOKEN"])==[]
output: def api_request_handler(args):
      url, token = args
      headers = {'Authorization': f'Bearer {token}'}
      try:
          response = requests.get(url, headers=headers)
          response.raise_for_status()
          data = response.json()
          if data:
              return data
          else:
              return []
      except (requests.RequestException, ValueError):
          return []