Maybe isArray didn't exist (or didn't know) at the time of writing the original function and then changed it later?
Hey guys has anybody worked with electron here? Specifically something for the menu bar?