any idea how to check a handle, if its valid?