I'd use getattr here but that's more or less preference.