this check is about getting a better error message. Why removing it?
we still get a NullPointerException on the next line.