Instead of passing by reference, what do you think about `$value = $this->{$method}($value);` and then getting rid of the `else` below (so that `$output[$key] = $value;` is applied)?