this sound like generally bad idea. If you need file or product, then you should have product optional. nil in API call always signalize bad design.