You can use the Null-Conditional Operator ?. to avoid null reference exceptions! This way you can shorten your lines of code down and make checking nulls quick and easy :-)
Check out my full videos on complete game dev tutorials - or other shorts for other tips!