What do you mean IsMainCategory - I searched the code and could not find this ? There are categories with no parent and categories that do have a parent category What are you trying to do ?
I use the ParentCategoryID to control my Parent/Child relationship with the Categories and in a recent database upgrade I see that there is now an IsMainCategory field but didn't see any documentation for it.