If/Else comparison to add tag

Are you certain the field always exists? See this thread.