see http://stackoverflow.com/questions/9573244/most-elegant-way-to-check-if-the-string-is-empty-in-python