Removed wrong assertion about possible resource children.
Moved include guard to the top.