Apologies - I assumed it did.  The original code isn't quite correct in that case (though I suspect it doesn't matter) - e.g. ".pn" returns true for IsPicture().