Added validator for boolean

This contains a check for a boolean. If params[0] is true $value can also be a string containing true to pass.