Added check for empty children on process tree