catch array deletion error