Add a better validation for leaves.
More concise.
Extra semi-colon.
Merge pull request #14 from jordandukart/7.x

Add a better validation for leaves.