Added a function

bool Upnp_device::is_valid() const