fix check for len(args)