change name.match(/mongodb/) to an if and don't return