Fixed bug where there was a missing indentation when trying to do an
if/else for checking if an indexed key existed already or not.