fixes issue collecting criterion alerts

Fixed issue with blocs `next`ing without returning an empty array and improved logic.