its probably cleaner to use a version gate here instead of a attr check.  your call though.