Use true/false_type on suggestion by @komiga

Yay less code.