Checking the actual correct condition when creating folders