Use is_record(X,record) and do not relay to internal record representation as tuples.