added explicit check for empty product response