Correctly return correct boolean value for when an xpath is matched.