PHOENIX-933 Local index support to Phoenix

Looks like the if and the else branch match. If that's expected/correct, can you get rid of the if statement?