null check in Model::unload