module.exports = function (defaultNope) {
  return function (val, yep, nope) {
    if (typeof val === 'object' && val[Symbol.iterator] != null) {
      let result = []

      for (let item of val) {
        result.push(typeof yep === 'function' ? yep(item) : yep)
      }

      val = result.length > 0

      yep = result
    }

    let result = val ? yep : (nope != null ? nope : defaultNope)

    if (typeof result === 'function') {
      result = result(val)
    }

    return result
  }
}

@@ -74,24 +74,47 @@
 pe) %7B%0A    if
+ (Array.isArray(val) %7C%7C
  (typeof val
@@ -159,16 +159,17 @@
 != null)
+)
  %7B%0A     

Fix arrays