Checks that the value is a boolean.

boolean(1); // Error: type
boolean(true); // passes