is_id function

Determine if the object is a valid ID