Need to check for existence of parent before using its 'vars'
Merge pull request #673 from isometriks/fix-collections

Need to check for existence of parent before using its 'vars'