Utility function to check if the transaction initiator a Keypair object, tries to mitigate version mismatch issues
{Keypair | SignerWalletAdapter} walletOrKeypair - Wallet or Keypair in question
Utility function to check if the transaction initiator a Keypair object, tries to mitigate version mismatch issues