check for mesh before delete