Added content check to method
npm publish