another safe check on delete graph