Jailbreak and unlocked iphone?

Is there a way to know that an iphone is already unlocked prior to being jailbroken? I'm skeptic when they say that it is unlocked and that i can use any sim after restoring to its original OS.

Check on a website like www.iPhoneox.com or any other IMEI check online