Javascript String isBoolean()
isBoolean()
String.prototype.isBoolean = function () { return this === 'true' || this === 'false'; };