I have written a few scripts in my day that do something like first putting a glob in parenthesis, then double-checking whether the array is longer than one, and if it's just length one, check that that thing is a thing and not just the wildcard.

Should have used nullglob. Next time I will!