Only do the hasAttribute check if the method exists - IE falls back to the === null...