Why not just check the return value of item()?

Cheers,
_