check for null hostModel.