Huh? Why not just do `provided_id = _get_index(provided_id)`? It will have the same result. Also, it seems like you should make the `_get_index` function return 0 if it can't find the ID -- that way, it's still treated as a falsy value, and at least the return type will be consistent.