Check for 'checked' attribute in a way that works with all jQuery
versions:
- jQuery 1.4 returns true if checked, however 1.7 returns checked, like
  prop returns true.
  Since prop is not in 1.4 we can just check if the checked attribute
  exists as it returns undefined if it's not set