This function accepts $load_entities as argument so returning EntityNG now #1818560: Convert taxonomy entities to the new Entity Field API or just stdObject from db_select()
fetch
Proposed
Clean-up usage of taxonomy_get_tree() to return array of stdObject and separate function to load entities based on result