New: avoids adding extra "undefined" to plugins array when pluginsIn is empty.