Oops, hasattr takes a string for the attr name