replace PIndexKeepError with simple bool return flag