Better checking of package.json