This isn't necessary, the iteration of the array and `pubKey.toBuffer()` will check the types.  However, if you are going to do this, please add `'Expected Array, got: ' + pubKeys`