PyCWnd.IsWindow

int = IsWindow()

determines whether the specified window handle identifies an existing window