Fixed null equality checks