1 has function - optimized even more
2 dig_structure function - re written based on getPrototypeOf