Simplified the bool creation with toVal() function