Wouldn't a simple `get_class($alias,true)` suffice at this point?