All supported targets support Array.isArray, so use that as it's more robust (fixes issue #5)