When there is no query strings, the value of inventary_number is "", do it's not nil, it's empty