check valid mnemonic is provided by zmitton · Pull Request #4 · trufflesuite/truffle-hdwallet-provider

Without this check its easy to create a wallet with an undefined seed producing an insecure address. Many people have already done this on ropsten: https://ropsten.etherscan.io/address/0x959fd7ef90...