Check if index is set