as much as the question seems silly (and in fact it is) I didn't find the answer anywhere, only what I find is answers to know if the element already exists in the DOM (which would solve my problem, but that would be a way unprofessional to solve).
Here is my code ex :
function randomName(element) {
// Im trying to find some method like this:
const result = isElement(element) ? true : false
}