Cleaned up null equality checks.