idOrName checks if passed element is undefined