Generalize isna to any index set