Extracted null argument test to its own method