// No group exists; there's only one element
var matchingNodes = node.ownerDocument.querySelectorAll('input[type=' + options + '][name=' + node.name + ']');
if (matchingNodes.length <= 1) { return true; }
return false;

if (!node.name) { return false; }

// No group exists; there's only one element
var matchingNodes = node.ownerDocument.querySelectorAll('input[type=' + options + '][name=' + node.name + ']');
if (matchingNodes.length <= 1) { return true; }
return false;

Check for empty name