checking dom for existance