you can pass this check because delete and delete [] works with NULL values just fine.