Removed unnecessary NULL checks on delete.