principal_exists function

checking if a principal will be faster than unwinding the stack and
watching for an exception.