BUG: correct valid pmid check

was not returning True/False, so all PMID filtering returned empty list