google scripts check if array is empty