- checking for null directories