add isNull() and get() methods to smart pointer