959895 - Handling nil for products

It appears that Rails is converting [] to nil for JSON calls. Thus, we need to
check if params has products as a key instead of just checking that it's
truthy.