(maint) BROKEN Refactor _check2 to use safe file iteration

This commit represents work done intermittently on the work laptop
and is in a broken state.

This commit introduces safe file checking via a file name array where
each entry is a valid filename ending with a null character.