Shopify verify theme support code snippet contains bugs

The following link containing Javascript code seems to contain bugs:

https://shopify.dev/apps/online-store/verify-support

It mentions you can check theme support for app blocks but if you have a vintage theme that doesn’t support app blocks, these messages will be printed to the console:

console.log('All desired templates support sections everywhere!')
console.log('All desired templates have main sections that support app blocks!');

This presumably occurs because templateJSONFiles.length is only used to be checked in an equality condition and should be used to check if the array is greater than 0.

I have created a gist I believe actually verifies app block compatibility:

https://gist.github.com/jeffquach/7badd4c05a3780d119d448345fb6c69f

Anyone please enlighten me if I’m interpreting this code snippet incorrectly