Replace !empty($search_param) with $search_param != ''

empty('0') = true so we can't search for the value 0