Fixed hasDeviceFamily "for" loop