I'm probably missing the bigger picture. It looks like you want to check whether a given key is valid. Instead of creating yet another instance of Crypt_RSA where you call loadKey() to check whether the key is valid, you should extract whatever logic loadKey() has to decide whether it is a correct key into a new method and just call that instead.