Replaced call to get() in has() with this.attributes[attr] to facilitate overriding of get().