Check if there's any entity modification before updating