Prevents needless query of what will return null

And prevents spamming to console of how the file we're trying to load is
a directory when using flatfile storage.