Add hasOwn check instead.