type check for boolean value