shouldn't this just be unless id &&  @ids_registry.include?(id) or will you address this with refactoring out nested prefixes?