add isDeletedOrNilContext for managed object