In the if case its enough to use `if self.build_number` to test for the not None case.