public function hasDevice(DeviceInterface $device) { return array_key_exists($device->getRegistrationId(), $this->deviceMap); }