Replace args() with Function.length

As in the previous pull request.