Fix MSVC 2013 compiling error C2440. Return shared_ptr as bool.