Changed hasAttribute IE fix

hasAttribute IE fix kept returning true