Default video capture device on iPad Pro 9.7

I have the following code running on iOS app:


+ (BOOL)isScannerSupported {

     AVCaptureDevice *defaultVideoDevice = [AVCaptureDevice defaultDeviceWithMediaType:AVMediaTypeVideo]; 
     
     BOOL result = (defaultVideoDevice.position == AVCaptureDevicePositionBack); 

     return result; 
}



I recently faced a rare case where the above method returns NO for iPad Pro 9.7 model A1673 (iOS 11.2.1)


How can that be possible? Isn't the back camera is the default capture device for all iPhones and iPads released on recent years?


Thanks for any suggesion.