match for molecular weight.
if ro5 violations is 0 then matching it actually equates to null in ternary operator, change to !== null