if external is undefined than you will get an error from Array.isArray