it's clearer to put conditional in caller:

`result << add_trailing_slash(path, options) if options[:trailing_slash]`