Check for afterElem

Selecting the element after the first element gives either `Nothing` or
`Just`, based on whether there is such an element.