search input only if count posts > 0