Trying to fix a potential issue checking for subfiles on a non directory.