true if the property is declared anywhere in the chain.
Description
Check whether an object or any of its ancestors declares a property as its own. Unlike in,
the search stops before Object.prototype, so built-ins such as toString do not count as a match.
hasPropertyInChain