catch exception if index doesn't exists