Seems like it will do it, thanks. I'd open a pull request, but my PHP is crap after all these years

but it seems like having an array with the unwanted files and checking for inclusion in it would be best, instead of adding conditions for each individually (right?)
Thanks for the speedy reply!