Handle case where children is NULL
Initialize children as array in constructor
Merge pull request #66 from dantleech/fix

Handle case where children is NULL