Wouldn't `assert name` be enough here?