add conditionals on search results to only display those that are not nil