Ensure explicit return from attr methods.

Prevents crashes with the following error message:

Can't use string ("") as an ARRAY ref while "strict refs"