Remove unnecessary else statement

This method could be shortened by using a guard clause instead of a
`if`/`else` statement.

Change-Id: Ic0e2d37e431c3129bf08d0a1afe5abbaeff64e19
Reviewed-on: http://gerrit.causes.com/42344
Tested-by: jenkins <jenkins@causes.com>
Reviewed-by: Shane da Silva <shane.dasilva@brigade.com>
Reorder elements to match comment

The comment mentions first child and then next node, but the code listed
them in reverse. Align them for readability.

Change-Id: I392c823c5413aaf51bdc7329e38af1c85d60f8d7
Reviewed-on: http://gerrit.causes.com/42345
Tested-by: jenkins <jenkins@causes.com>
Reviewed-by: Shane da Silva <shane.dasilva@brigade.com>