Refactored getattr() to _.get()