check for boolean