verify null before delete