No need for this condition, it's alright to delete NULL pointers.