add has children check to methods. removed methods from componentModel.js