You can just use rejectIfEmpty without checking for null, i will fix it