Added isset(), removed $restore