Cosmetic: Add two empty lines for readability
Make checking for self.transport more explicit