support operator bool