Added nullcheck to .Equals