When you do this in Unity:
if (myGameObject == null) {}
Unity does something special with the == operator. Instead of what most people would expect, we have a special implementation of the == operator. This serves two purposes: 1) When a MonoBehaviour has fields, in the editor only[1], we do not s…