I will use the `getattr` way, since that would be the most robust.