There are some patterns for checking whether a parameter to a method has been given a null value.
null
First, the classic one. It is common in self-made code
The first method is my preference because it conveys the most intent. There are often shortcuts that can be taken in programming but my view is that shorter code is not always better code.