provided tips too fast.. you might want to use `file.isDirectory()`,  `file.canRead()` etc.. might make more sense than simple null checks :-)