Made methods that could return null pointer return null in node, rather
than cause a seg fault