Remove the is_indexable method check and use an element flag to check if the element can use an index.