fixed possible IO exception by checking for file existence prior enumerating childs