[fix] +if statement - set index to null if none