Added isset(), removed $restore

Two small changes, preventing/stopping warnings from popping up.