Avoid boolean type check
Avoid boolean type check

In #3559 @ichernev stated that he would prefer two strict comparisons
(to `true` and `false`) over checking the type.

This pull request actualizes that preference.

calebcauthon/moment,mj1856/moment,ze-pequeno/moment,moment/moment,Oire/moment,mj1856/moment,OtkurBiz/moment,calebcauthon/moment,Oire/moment,xkxx/moment,monoblaine/moment,moment/moment,PKRoma/moment,julionc/moment,ze-pequeno/moment,xkxx/moment,samuelfullerthomas/moment,joelmheim/moment,PKRoma/moment,moment/moment,Oire/moment,joelmheim/moment,monoblaine/moment,samuelfullerthomas/moment,PKRoma/moment,xkxx/moment,ze-pequeno/moment,joelmheim/moment,julionc/moment,mj1856/moment,samuelfullerthomas/moment,calebcauthon/moment,OtkurBiz/moment,OtkurBiz/moment,julionc/moment