def METHOD_NAME(self, inst) -> bool:
    """
    Returns True if @inst already has a name, False otherwise. Does not
    modify @inst in either case.
    """
    if not inst.name:
        return False
    self._name_counter[inst.name] += 1
    return True