this line could be simplified to `return obj == null;`