fn can be undefined, wasn't emiting err, but instead `TypeError: Cannot read property 'length' of undefined`