Fixing `element.is()`