Reverse order of null check for clarity