I'm pretty both of these are deliberate as the difference
with your version is that it'll always create an empty list even if the getattr succeeds.