Why is the contact !== null needed?