Also can be written as:
if (checkedSeriesIds.length) { ... }