::is class method for boolean attributes