if not exists(select * from RegFunctions where LCase(name) = LCase('ImportXML')) then
  insert into RegFunctions(name) values ('ImportXML') 
end if