I believe this is a bug, it should be (!(componentName instanceof Array)). If this is true, then unit tests for this module suck, as it means we don't check if passing a string as componentName works