[INTERNAL] removed unnecessary != 0 check before calling delete