Maybe i should write `if node_aliases.grep(node_attributes["alias"]).size > 1` instead of the select and current if statement for duplicate detection.