Added Interface and check if dom exists for require