Only allow refreshing entity is the entity is valid