Checking if index_name is set ie., omitting columns which do not have index.