moved comment
Array.isArray -> isArray
pushing commandLine into a closure