Report question

Question: How to check during Nokogiri/Ruby parsing if element exists on page?