Enhancement: adds if clause to search input