Removed unnecessary check since querySelectorAll always returns a NodeList