Adding isNull method to the simpleNode