Compare is_deleted for equality with 0 rather that inequality with 0.