Fix MSVC 2013 compiling error C2440. MSVC doesn't understand return shared_ptr as bool.