First check if args are empty before checking if input dir exists.