Buying a used iphone

So there's this store near where I live that sells a bunch of used iPhones. Since they're being sold by a store, how would I go about checking for a clean imei? I'm not sure if the store checks before they buy them.

Take a smart phone in, or a friend that has one. Google ESN or IMEI checker. You can check instantly online.