added hasdevicesenrolled