add operator bool to the scoped_ptr