protected function lib_ispercentage($value) { return $this->toBool($value[0] == "number" && $value[2] == "%"); }