PHP: unset - Manual - PHP: Hypertext Preprocessor
You don't need to check that a variable is set before you unset it. is harmless. is pointless complication. This doesn't apply to properties of objects that have __isset() methods that visibly change object state ......