check view exists before destroy()

If the view does not exist unable to call destroy.