Does proper falsy check on empty properties

for instance tabIndex is added as a property because the browser sets it to -1 which is truthy.