can you just change it to:

return getattr(record, 'internal', record.funName == '_log_error')

I have no idea why we were casting this to a tuple