use same function to check if node is active than in adaptChildren
Merge pull request #93 from Kunstmaan/active_node_check_change

use same function to check if node is active than in adaptChildren