Can we sniff whether `getAttribute` is available outside this loop?