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