I propose to create method "addHeadElementIfMissing".