fix check for empty args