avoid to check the non-existent dirs/categories