are_ids function

Determine if x consists out of IDs