COSMIT explicit None check in naive Bayes