$resource->isfolder is the 'Container' flag in the resource edit field, where as $hasChildren is a live check for child nodes. Not sure why they are separated historically, but technically they are separate entities at this time. Don't know (hunch says no) if ext relies on the icon-folder or icon-haschildren classes specifically.