Created a method that emulates isinsntace for aggregation

4 jobs for isinstance_nested in 11 minutes and 50 seconds (queued for 2 seconds)