Use getattr default value instead of testing the value existence