Hello,
I've tested this code with Safari 11.1.1 on macOS.
It returns NOT VERIFIED. The check is VERIFED with single "." version as iOS ones but not with macOS ones due to the string comparison.
There is a way to do it easily without a string parse?
Better solution at this time :