fixes explicit operator bool of optional in c++>11