record: only update if attrs exist