Handled empty list error for choice in  get_target