Is there a way instead of getting all the children or all the siblings with $var.getChildren() and $var.getSiblings() to get only the first child or the first sibling ?

I couldn't find anything else besides looping through the elements.

Does $var.getChildren(1) work?