Use an explicit status to determine whether to reload entities after a refresh, rather than checking for the present of entities, which fails when you are deleting entities.