Workaround for booleans-as-numbers (thank you, PHP).