$miObjeto = new MiObjeto();if( $miObjeto instanceof MiObjeto ) { echo $miObjeto->algo();} else { echo '$miObjeto no es un objeto del tipo MiObjeto';}