Method used to check whether the current device matches the id property
whether the current device matches the id property as Boolean