isDom method added