nil check on indexDefs