changed index settings case to check for nil options