preventing `None` showing up when no search value is provided