Add typed boolean logic