More then one or equal to one search result

I want to show a part of the page when there is not a search yet. This part must disappear if the visitor start using by submitting a search term.
This give’s me the opposite. It shows the page element when there is a search.

<?php if($results->count()) : ?>
Some Code
<?php endif ?>   

So I changed it to equal or greater than 1 result. But it seems not to work. What am I doing wrong?

<?php if ($results->count() ≥ 1): ?>
Some Code
<?php endif ?>   

Thanks!

<?php if ($results->isNotEmpty()) : ?>
  <!-- code for results -->
<?php else : ?>
      <!-- text if there are no results -->
<?php endif ?>
1 Like

Thank you so much! :relaxed: