def _get_returner(returner_types):
 for returner in returner_types:
  if returner:
   return returner

def _get_returner ( returner_types ) : for returner in returner_types : if returner : return returner
helper to iterate over returner_types and pick the first one .