Add an optional selector to isPresent

fixes #47