What's going on here? Was this originally a bug trying to use `functions[0]` when `functions.length == 0`?