I think saying ```if len(private_key)``` is not only more readable, but probably also [safer](http://stackoverflow.com/questions/2988017/string-comparison-in-python-is-vs/2988117#2988117).