Seems like you only need to check for NULL, which means segment wasn't evaluated. 0.0 is legitimate result and should be included if we calculating (weighted) average