if-statement not required since delete with NULL does nothing.