Code assumed the '..' was there, which isn't the case any more. Just early exiting for empty directories is fine.