Check for directory existance before listing its children.