If God only exists in the mind but not in reality, then something greater than God could exist (i.e., something that has all the qualities of our thought of God, as well as real existence). This cannot be true since this would violate our definition of God.