Adding HTMLElement argument check