Make getattr more simpler