do something else if one of the input arrays is empty